我想将jitsi-server与已经运行的nginx-proxy一起使用。 到目前为止,我做了什么: 拉出图像后,我通过以下方式更改了.env:
PUBLIC_URL=https://meet.mydomain.de
DOCKER_HOST_ADDRESS=htts://meet.mydomain.de
DISABLE_HTTPS=1
Moreover in the docker-compose.yml:
version: '3'
services:
web:
image: jitsi/web
expose:
- '${HTTP_PORT}'
volumes:
...
environment:
...
- VIRTUAL_HOST=meet.mydomain.de
- VIRTUAL_PORT=80
networks:
- meet.jitsi
- proxy_network
...
networks:
meet.jitsi:
proxy_network:
external: true
但是现在我得到了502(错误网关)。在nginx的配置中,将创建以下内容:
upstream meet.mydomain.de {
# Cannot connect to network of this container
server 127.0.0.1 down;
# Cannot connect to network of this container
server 127.0.0.1 down;
}
server {
server_name meet.mydomain.de;
listen 80 ;
access_log /var/log/nginx/access.log vhost;
include /etc/nginx/vhost.d/default;
location / {
proxy_pass http://meet.mydomain.de;
}
}
server {
server_name meet.arminwells.de;
listen 443 ssl http2 ;
access_log /var/log/nginx/access.log vhost;
return 500;
ssl_certificate /etc/nginx/certs/default.crt;
ssl_certificate_key /etc/nginx/certs/default.key;
}
进一步指出,代理无法连接到jitsi服务器。
供参考,这里是nginx的配置:
proxy:
image: jwilder/nginx-proxy:alpine
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
container_name: nextcloud-proxy
networks:
- proxy_network
ports:
- 80:80
- 443:443
volumes:
- ./proxy/conf.d:/etc/nginx/conf.d:rw
- ./proxy/vhost.d:/etc/nginx/vhost.d:rw
- ./proxy/html:/usr/share/nginx/html:rw
- ./proxy/certs:/etc/nginx/certs:ro
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
restart: always
有人知道我在这里做错了吗?