Skip to content

Commit

Permalink
fix live reload (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyind committed Mar 5, 2024
1 parent 94365f7 commit 4dbbd17
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions docker-compose.yaml
Expand Up @@ -23,6 +23,7 @@ services:
- server
- --enableGitInfo
- --bind=0.0.0.0
- --liveReloadPort=8081
- --buildDrafts
static-cms:
container_name: static-cms
Expand Down
13 changes: 11 additions & 2 deletions proxy/proxy-cms-admin.conf
Expand Up @@ -10,9 +10,18 @@ server {
location / {
proxy_pass http://hugo:1313;
proxy_pass_request_headers on;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
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;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_set_header Early-Data $ssl_early_data;

# websocket support for live reload
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}

# proxy /admin, /auth and /callback to the docker-decap-cms-standalone container
Expand Down

0 comments on commit 4dbbd17

Please sign in to comment.