diff --git a/data/conf.d/auth.conf b/data/conf.d/auth.conf index 369db3f..6c1ea3f 100644 --- a/data/conf.d/auth.conf +++ b/data/conf.d/auth.conf @@ -85,6 +85,8 @@ server { proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Accept-Encoding ""; + proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $http_connection; proxy_http_version 1.1; diff --git a/docker-compose.yml b/docker-compose.yml index 019fdb3..e7025f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: web: - container_name: novicelab-dev-nginx + container_name: nginx image: nginx:latest ports: - "80:80" @@ -8,8 +8,8 @@ services: volumes: - ./data/nginx.conf:/etc/nginx/nginx.conf:ro - ./data/conf.d:/etc/nginx/conf.d:ro - - ./data/certbot/conf:/etc/letsencrypt - - ./data/certbot/www:/var/www/certbot + - ./certbot/conf:/etc/letsencrypt + - ./certbot/www:/var/www/certbot restart: always command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'" networks: @@ -19,8 +19,8 @@ services: image: certbot/dns-cloudflare:latest restart: unless-stopped volumes: - - ./data/certbot/conf:/etc/letsencrypt - - ./data/certbot/www:/var/www/certbot + - ./certbot/conf:/etc/letsencrypt + - ./certbot/www:/var/www/certbot - /var/run/docker.sock:/var/run/docker.sock # Allows container to talk to Docker entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'" networks: