diff options
author | jaseg <code@jaseg.net> | 2020-01-17 11:11:52 +0100 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2020-01-22 15:57:23 +0100 |
commit | a747ed293ec4449ca15271f9476903905dbbfaf5 (patch) | |
tree | fdbd089df1d9052ba7c886cbc3e235ea8c1faab9 /nginx.conf | |
parent | 6408f5a15c8dd3967b073e8a2d160b5f490f534a (diff) | |
download | infra-a747ed293ec4449ca15271f9476903905dbbfaf5.tar.gz infra-a747ed293ec4449ca15271f9476903905dbbfaf5.tar.bz2 infra-a747ed293ec4449ca15271f9476903905dbbfaf5.zip |
deploy: add notification proxy
Diffstat (limited to 'nginx.conf')
-rw-r--r-- | nginx.conf | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -132,6 +132,44 @@ http { server { listen 443 ssl http2; listen [::]:443 ssl http2; + server_name automation.jaseg.de; + root /usr/share/nginx/html; + + ssl_certificate "/etc/letsencrypt/live/automation.jaseg.de/fullchain.pem"; + ssl_certificate_key "/etc/letsencrypt/live/automation.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/notification-proxy.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; + } + } + + server { + listen 443 ssl http2; + listen [::]:443 ssl http2; server_name kochbuch.jaseg.net kochbuch.jaseg.net; root /usr/share/nginx/html; |