Skip to content

Commit 1588ff4

Browse files
author
tchapi
committed
chore
1 parent 21897bc commit 1588ff4

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

config/packages/framework.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ framework:
55
#csrf_protection: true
66
http_method_override: false
77

8-
trusted_proxies: '%trusted_proxies%'
9-
108
# Enables session support. Note that the session will ONLY be started if you read or write from it.
119
# Remove or comment this section to explicitly disable session support.
1210
session:

config/services.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ parameters:
1313
default_birthday_reminder_offset: "PT9H"
1414
caldav_enabled: "%env(bool:CALDAV_ENABLED)%"
1515
carddav_enabled: "%env(bool:CARDDAV_ENABLED)%"
16-
trusted_proxies: '%env(default:default_trusted_proxies:TRUSTED_PROXIES)%'
17-
default_trusted_proxies: '127.0.0.1,REMOTE_ADDR'
1816

1917
services:
2018
# default configuration for services in *this* file

docker/configurations/Caddyfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
redir /.well-known/carddav /dav/
99

1010
root * /var/www/davis/public
11-
php_fastcgi unix//var/run/php-fpm/php-fpm.sock
11+
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+
1218
file_server {
1319
# Safety net, just in case
1420
hide .git .gitignore

0 commit comments

Comments
 (0)