Fix Keycloak Corrupted Content error
This commit is contained in:
@@ -85,6 +85,8 @@ server {
|
|||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|
||||||
|
proxy_set_header Accept-Encoding "";
|
||||||
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection $http_connection;
|
proxy_set_header Connection $http_connection;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
container_name: novicelab-dev-nginx
|
container_name: nginx
|
||||||
image: nginx:latest
|
image: nginx:latest
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
@@ -8,8 +8,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./data/nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./data/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
- ./data/conf.d:/etc/nginx/conf.d:ro
|
- ./data/conf.d:/etc/nginx/conf.d:ro
|
||||||
- ./data/certbot/conf:/etc/letsencrypt
|
- ./certbot/conf:/etc/letsencrypt
|
||||||
- ./data/certbot/www:/var/www/certbot
|
- ./certbot/www:/var/www/certbot
|
||||||
restart: always
|
restart: always
|
||||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
|
||||||
networks:
|
networks:
|
||||||
@@ -19,8 +19,8 @@ services:
|
|||||||
image: certbot/dns-cloudflare:latest
|
image: certbot/dns-cloudflare:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/certbot/conf:/etc/letsencrypt
|
- ./certbot/conf:/etc/letsencrypt
|
||||||
- ./data/certbot/www:/var/www/certbot
|
- ./certbot/www:/var/www/certbot
|
||||||
- /var/run/docker.sock:/var/run/docker.sock # Allows container to talk to Docker
|
- /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;'"
|
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user