diff options
author | jaseg <code@jaseg.net> | 2020-06-05 16:28:39 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2020-06-05 16:29:54 +0200 |
commit | 24f1e420ff74ad503cb20e28901834882c266b94 (patch) | |
tree | b43972e794abd8641b6ff4b194169ee4c3f2deca /gerboweb/deploy/nginx.conf | |
parent | 498e7e61542810865f64b642c2e006bf2f82c456 (diff) | |
download | gerbolyze-24f1e420ff74ad503cb20e28901834882c266b94.tar.gz gerbolyze-24f1e420ff74ad503cb20e28901834882c266b94.tar.bz2 gerbolyze-24f1e420ff74ad503cb20e28901834882c266b94.zip |
deploy: Add dyndns service
Diffstat (limited to 'gerboweb/deploy/nginx.conf')
-rw-r--r-- | gerboweb/deploy/nginx.conf | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gerboweb/deploy/nginx.conf b/gerboweb/deploy/nginx.conf index b4245fa..744bd01 100644 --- a/gerboweb/deploy/nginx.conf +++ b/gerboweb/deploy/nginx.conf @@ -370,5 +370,43 @@ http { root /usr/share/nginx/html; } } + + server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name dyndns.jaseg.de; + root /usr/share/nginx/html; + + ssl_certificate "/etc/letsencrypt/live/dyndns.jaseg.de/fullchain.pem"; + ssl_certificate_key "/etc/letsencrypt/live/dyndns.jaseg.de/privkey.pem"; + ssl_dhparam "/etc/letsencrypt/ssl-dhparams.pem"; + include /etc/letsencrypt/options-ssl-nginx.conf; + + ssl_stapling on; + ssl_stapling_verify on; + + resolver 67.207.67.2 67.207.67.3 valid=300s; + resolver_timeout 10s; + + add_header Strict-Transport-Security "max-age=86400"; + + # Load configuration files for the default server block. + include /etc/nginx/default.d/*.conf; + + location / { + include uwsgi_params; + uwsgi_pass unix:/run/uwsgi/dyndns.socket; + } + + error_page 404 /404.html; + location = /40x.html { + root /usr/share/nginx/html; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + } } |