我联系你是因为我不能让在生产部门工作。
二进制预构建运行良好,但是当我试图连接到集线器时,我得到了404无发现。
下面是我运行的命令:
sudo MERCURE_PUBLISHER_JWT_KEY='eyJhbGciOiJIUzI1NiIsInR5cCI6...' MERCURE_SUBSCRIBER_JWT_KEY='eyJhbGciOiJIUzI1NiIsInR5cCI6...' SERVER_NAME=:3000 ./mercure run
服务器的启动显然没有任何问题:
2022/02/15 17:38:09.919 INFO using adja
我正在使用docker (来自symfony docs - ),在symfony 6中,我记得:
Failed to connect to localhost port 443 after 0 ms: Connection refused for "https://localhost/products".
浏览器中的此地址将返回带有产品的json。
这位是控制器:
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use
我有一个运行Caddy的docker容器,还有另一个web服务器。
在我的Dockerfile中
EXPOSE 80 10240 # 10240 is the port of the other webserver.
我像这样运行docker (不要问我为什么你需要EXPOSE和-p)。
docker run -p 80:80 -p 10240:1024 -it <hash>
这将启动两个服务器。在我的主机(它是Mac )上,我可以很好地连接到localhost:10240。但是,如果我连接到localhost:80,我得到一个空响应(断开连接)。
docker容器中的Nets
我已经将域的A/AAAA记录指向了我的服务器的IP地址,当我将服务器的IP地址放在浏览器中而不是使用域名时,我确实看到了Caddy主页。
不确定我的Caddyfile更改是否正在重新加载。
浏览器中的点击:
http://10.20.30.40 -- I see Caddy home page when I hit my machine's ip address
http://www.mytekworld.com -- The browser just keeps spinning when I hit the domain name
https://www.mytekworld.co
Ubuntu@VM-52-235-ubuntu:~$ curl https://getcaddy.com | bash -s personal http.filebrowse
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7380 100 7380 0 0 1976 0 0:00:03