1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_playbook_servers.git synced 2024-09-14 19:53:56 +02:00
ansible_playbook_servers/templates/files/nginx/sites/xn--see-br-0xa.se_tls.conf

36 lines
851 B
Text
Raw Permalink Normal View History

2021-11-09 14:59:54 +01:00
server {
2021-11-09 15:21:24 +01:00
listen 443 ssl http2;
listen [::]:443 ssl http2;
2021-11-09 14:59:54 +01:00
2021-11-09 15:21:24 +01:00
server_name xn--see-br-0xa.se see-bör.se;
2021-11-09 14:59:54 +01:00
2021-11-09 15:21:24 +01:00
include snippets/tls_parameters_{{ site.name }}.snippet.conf;
include snippets/tls_certificate_{{ site.name }}.snippet.conf;
include snippets/logging_{{ site.name }}.snippet.conf;
2021-11-09 14:59:54 +01:00
2021-11-09 15:21:24 +01:00
root /srv/www/xn--see-br-0xa.se;
location / {
2021-11-09 16:40:55 +01:00
add_header X-Served-By "teapot CYBER 4.0 (with blockchain)";
2021-11-09 15:21:24 +01:00
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
charset utf-8;
try_files $uri $uri/ =404;
}
2021-11-09 14:59:54 +01:00
}
2021-11-29 01:40:10 +01:00
# redirect UTF-8 encoded domain... just in case
server {
listen 80;
listen [::]:80;
server_name see-bör.se;
include snippets/logging_{{ site.name }}.snippet.conf;
include snippets/acmetool.snippet.conf;
location ^~ / {
return 308 https://xn--see-br-0xa.se$request_uri;
}
}