summaryrefslogtreecommitdiff
path: root/deployment/systems/aisaka.scm
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/systems/aisaka.scm')
-rw-r--r--deployment/systems/aisaka.scm6
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")