about summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/nginx.conf.j25
-rw-r--r--templates/wg.conf.j222
2 files changed, 4 insertions, 23 deletions
diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2
index aee87da..28c79cf 100644
--- a/templates/nginx.conf.j2
+++ b/templates/nginx.conf.j2
@@ -1,6 +1,7 @@
 {% if server.http_redirect is defined and server.http_redirect %}
 server {
        listen         80;
+       listen         [::]:80;
        server_name    {{ server.name }};
        return         301 https://$server_name$request_uri;
 }
@@ -13,8 +14,10 @@ server {
 
 {% if server.http_redirect is not defined or not server.http_redirect %}
   listen 80;
+  listen         [::]:80;
 {% endif %}
-  listen 443 ssl http2;
+  listen      443 ssl http2;
+  listen [::]:443 ssl http2;
   server_name {{ server.name }} {{server.aliases|default([])| join(' ')}};
 
   location / {
diff --git a/templates/wg.conf.j2 b/templates/wg.conf.j2
deleted file mode 100644
index 6d358b8..0000000
--- a/templates/wg.conf.j2
+++ /dev/null
@@ -1,22 +0,0 @@
-#tamriel 10.0.27.1
-[Interface]
-ListenPort = 48574
-PrivateKey = {{ wireguard_private_key }}
-
-# balmora 10.0.27.2
-[Peer]
-PublicKey = 6dbkVQAQPkbk0+wt6f+wge5cPW6THe0Kua830jio528= 
-AllowedIPs = 10.0.27.2/32
-PersistentKeepalive = 20
-
-# motorola g6 10.0.27.3
-[Peer]
-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