Quiero implementar la sincronización en mi servidor Ubunty 18.04 usando la ventana acoplable.
Estoy usando nginx como proxy inverso para que el tráfico WebGUI pase por SSL usando mi certificado. Sin embargo, abrir la GUI web cuando se realiza un proxy a través de nginx hace que se vea asíhttps://i.stack.imgur.com/UdhYO.png
Encontré otra persona con este problema en Google y no encontré una solución... ¿Alguien sabe qué pasa?
Mi docker-compose.yml:
version: '3'
services:
nginx:
image: nginx:latest
container_name: nginx-1
networks:
- syncthing
ports:
- "80:80"
- "443:443"
restart: always
volumes:
- ./www:/var/www
- ./nginx/:/etc/nginx
- ./nginx/log:/var/log/nginx
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
syncthing:
image: linuxserver/syncthing
container_name: syncthing-1
networks:
- syncthing
ports:
#webUI
- 8384:8384
#listening
- 22000:22000
#port discovery
- 21027:21027/udp
restart: always
volumes:
- ./syncthing/config:/config
- ./syncthing/data:/data
environment:
- TZ=CET
letsencrypt:
image: certbot/certbot
command: renew
container_name: letsencrypt-1
networks:
- le
depends_on:
- nginx
restart: always
volumes:
- ./letsencrypt:/etc/letsencrypt
- ./letsencrypt/log:/var/log/letsencrypt
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
networks:
syncthing:
Y mi archivo habilitado para sincronizar sitios nginx:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name example.com;
root /;
# SSL
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/example.com/chain.pem;
# reverse proxy
location /syncthing {
proxy_pass http://syncthing:8384;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
# HTTP redirect
server {
listen 80;
listen [::]:80;
server_name example.com;
location / {
return 301 https://example.com$request_uri;
}
}