diff options
author | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2025-05-11 16:13:41 +0200 |
---|---|---|
committer | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2025-05-11 16:13:41 +0200 |
commit | 41c927a84a92d7b6dc45ad05b68830382919d88a (patch) | |
tree | 9cd67cdbcd61d997c3253ea77ce851a94d044495 /deployment/systems/aisaka.scm | |
parent | d83f572afef6e88cb86f7eedea9abe933a0f0f86 (diff) |
aisaka: add proxy_set_headers for test.marekpasnikowski.pl
Diffstat (limited to 'deployment/systems/aisaka.scm')
-rw-r--r-- | deployment/systems/aisaka.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deployment/systems/aisaka.scm b/deployment/systems/aisaka.scm index ceedcc6..4fdad7b 100644 --- a/deployment/systems/aisaka.scm +++ b/deployment/systems/aisaka.scm @@ -407,7 +407,11 @@ ;; Test (gnu:services:web:nginx-server-configuration (locations (list (gnu:services:web:nginx-location-configuration - (body (list "if ($ssl_client_verify != SUCCESS) {return 403;}")) + (body (list "proxy_set_header Host $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;" + "if ($ssl_client_verify != SUCCESS) {return 403;}")) (uri "/")))) (listen (list "192.168.10.2:443 ssl")) (root "/home/marek/Publiczne/test") |