From 2f27dab991edc058b4850c5a1596f895e1587936 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Wed, 10 Feb 2021 23:14:53 +0000 Subject: Add missing stuff in headers, add new vpn client --- templates/nginx.conf.j2 | 1 + templates/wg.conf.j2 | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'templates') diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 1b7f18d..aee87da 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -30,6 +30,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Scheme $scheme; proxy_redirect off; proxy_http_version 1.1; {% if server.websocket is defined and server.websocket %} diff --git a/templates/wg.conf.j2 b/templates/wg.conf.j2 index 6a62c7f..6d358b8 100644 --- a/templates/wg.conf.j2 +++ b/templates/wg.conf.j2 @@ -14,3 +14,9 @@ PersistentKeepalive = 20 PublicKey = pqSY7SCKuRkHBTMWVhYAASrx/A1HF8Nlb3emnO8WqAc= AllowedIPs = 10.0.27.3/32 PersistentKeepalive = 20 + +# spawarka 10.0.27.4 +[Peer] +PublicKey = fd39gCTX7+hy6/lIAenhI1LVw6mCLWRSn0+6a1O+QCc= +AllowedIPs = 10.0.27.4/32 +PersistentKeepalive = 20 -- cgit 1.4.1