Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:grist [2025/01/22 15:20] – [Reverse Proxy] willy | services:grist [2025/03/13 14:59] (current) – [Reverse Proxy] willy | ||
---|---|---|---|
Line 23: | Line 23: | ||
- GRIST_SESSION_SECRET=here_write_a_secret_passcode | - GRIST_SESSION_SECRET=here_write_a_secret_passcode | ||
- GRIST_DEFAULT_EMAIL=me@mydomain.com | - GRIST_DEFAULT_EMAIL=me@mydomain.com | ||
- | - APP_HOME_URL=https:// | + | |
+ | - GRIST_PROXY_AUTH_HEADER=Remote-Email | ||
+ | | ||
+ | - APP_DOC_URL=https: | ||
+ | - GRIST_IGNORE_SESSION=true | ||
stdin_open: true | stdin_open: true | ||
tty: true | tty: true | ||
Line 34: | Line 38: | ||
</ | </ | ||
- | Remember to set an available port (8484)! | + | Remember to set an available port (8484)! |
Now pull it: | Now pull it: | ||
Line 44: | Line 48: | ||
==== Single Sign On ==== | ==== Single Sign On ==== | ||
- | ... | + | Grist will happily inherit your SSO authentication from the reverse proxy, the key point are the following settings in your docker compose: |
+ | < | ||
+ | - GRIST_FORWARD_AUTH_HEADER=Remote-Email | ||
+ | - GRIST_PROXY_AUTH_HEADER=Remote-Email | ||
+ | - GRIST_IGNORE_SESSION=true | ||
+ | </ | ||
+ | If you need // | ||
==== Reverse Proxy ==== | ==== Reverse Proxy ==== | ||
Line 63: | Line 73: | ||
access_log / | access_log / | ||
error_log / | error_log / | ||
+ | |||
+ | include " | ||
| | ||
- | | + | include " |
- | proxy_set_header Host $host; | + | include " |
- | 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 Host $host; |
- | proxy_set_header Upgrade $http_upgrade; | + | proxy_set_header X-Real-IP $remote_addr; |
- | proxy_set_header Connection " | + | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
- | } | + | proxy_set_header X-Forwarded-Proto $scheme; |
+ | proxy_set_header Upgrade $http_upgrade; | ||
+ | proxy_set_header Connection " | ||
+ | } | ||
} | } | ||
</ | </ | ||
+ | |||
+ | This will enable Authelia SSO (see [[selfhost: | ||