Fix Keycloak Corrupted Content error

This commit is contained in:
2026-03-11 17:21:43 +00:00
parent 728f883d99
commit 53b212e5b0
2 changed files with 7 additions and 5 deletions

View File

@@ -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;

View File

@@ -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: