We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9489928 commit 1543d1eCopy full SHA for 1543d1e
docker/configurations/Caddyfile
@@ -8,7 +8,13 @@
8
redir /.well-known/carddav /dav/
9
10
root * /var/www/davis/public
11
- php_fastcgi unix//var/run/php-fpm/php-fpm.sock
+ php_fastcgi unix//var/run/php-fpm/php-fpm.sock {
12
+ # Preserve the original X-Forwarded-Proto from upstream, as it might be HTTPS
13
+ header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto}
14
+ header_up X-Forwarded-Host {http.request.header.X-Forwarded-Host}
15
+ header_up X-Forwarded-For {http.request.header.X-Forwarded-For}
16
+ }
17
+
18
file_server {
19
# Safety net, just in case
20
hide .git .gitignore
0 commit comments