Merge pull request #61 from calvadev/patch-1

Fix connection failures on nginx reverse proxy
This commit is contained in:
Barry Deen 2024-09-21 15:11:24 -04:00 committed by GitHub
commit 7b71d98633
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,6 +139,9 @@ server {
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_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
```
@ -184,8 +187,8 @@ To start the project using Docker Compose, follow these steps:
```yaml
volumes:
- "./db:/app/db" # only change the left side before the colon
- "./templates/index.html:/app/templates/index.html" # only change the left side before the colon
- "./templates/static:/app/templates/static" # only change the left side before the colon
- "./templates/index.html:${INDEX_PATH}" # only change the left side before the colon
- "./templates/static:${INDEX_PATH}" # only change the left side before the colon
```
5. Run the following command: