aboutsummaryrefslogtreecommitdiff
path: root/data/pywttr_docker
diff options
context:
space:
mode:
Diffstat (limited to 'data/pywttr_docker')
-rw-r--r--data/pywttr_docker/pywttr_docker.conf.j233
1 files changed, 33 insertions, 0 deletions
diff --git a/data/pywttr_docker/pywttr_docker.conf.j2 b/data/pywttr_docker/pywttr_docker.conf.j2
new file mode 100644
index 0000000..921a9dd
--- /dev/null
+++ b/data/pywttr_docker/pywttr_docker.conf.j2
@@ -0,0 +1,33 @@
1server {
2 listen 443 ssl;
3 server_name {{ pywttr_docker_server_name }};
4
5 ssl_certificate /etc/letsencrypt/live/chudnick.com/fullchain.pem;
6 ssl_certificate_key /etc/letsencrypt/live/chudnick.com/privkey.pem;
7 add_header Strict-Transport-Security "max-age=31536000" always;
8 ssl_stapling on;
9 ssl_stapling_verify on;
10
11 # Security / XSS Mitigation Headers
12 add_header X-Frame-Options "SAMEORIGIN";
13 add_header X-XSS-Protection "1; mode=block";
14 add_header X-Content-Type-Options "nosniff";
15
16 # authelia
17 include /etc/nginx/snippets/authelia-location.conf;
18
19 location / {
20 #authelia
21 include /etc/nginx/snippets/proxy.conf;
22 include /etc/nginx/snippets/authelia-authrequest.conf;
23 proxy_pass http://127.0.0.1:{{ pywttr_docker_external_port }}/;
24 }
25
26}
27
28server {
29 listen 80;
30 listen [::]:80;
31 server_name {{ pywttr_docker_server_name }};
32 return 301 https://$host$request_uri;
33}