72 lines
2.2 KiB
Text
72 lines
2.2 KiB
Text
server {
|
|
server_name openpgpkey.ari.lt;
|
|
|
|
http2 on;
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
limit_req zone=all burst=5 delay=5;
|
|
limit_req zone=allm burst=5 delay=5;
|
|
|
|
include /etc/nginx/snippets.d/paranoia-headers.conf;
|
|
add_header Onion-Location "http://openpgpkey.arija664fy4c6zhfbsytbqcbz5gcc3qjuwaz4ue6cium5c5fo2fgakyd.onion$request_uri" always;
|
|
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
|
|
server {
|
|
server_name openpgpkey.ari.lt;
|
|
|
|
http2 on;
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
|
|
add_header Onion-Location "http://openpgpkey.arija664fy4c6zhfbsytbqcbz5gcc3qjuwaz4ue6cium5c5fo2fgakyd.onion$request_uri" always;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/ari.lt-0001/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/ari.lt-0001/privkey.pem;
|
|
ssl_trusted_certificate /etc/letsencrypt/live/ari.lt-0001/chain.pem;
|
|
include /etc/nginx/snippets.d/ssl.conf;
|
|
|
|
limit_req zone=all burst=5 delay=5;
|
|
limit_req zone=allm burst=5 delay=5;
|
|
|
|
include /etc/nginx/snippets.d/5xx.conf;
|
|
|
|
location = /.well-known/openpgpkey/ari.lt/hu/qfckua8a7bfyw78pn18y63jp9xkjnqoa {
|
|
include /etc/nginx/snippets.d/global-resource.conf;
|
|
alias /var/www/ari-web/ari.lt/.well-known/openpgpkey/hu/qfckua8a7bfyw78pn18y63jp9xkjnqoa;
|
|
}
|
|
|
|
location / {
|
|
include /etc/nginx/snippets.d/paranoia-headers.conf;
|
|
return 301 https://ari.lt/;
|
|
}
|
|
}
|
|
|
|
server {
|
|
server_name openpgpkey.arija664fy4c6zhfbsytbqcbz5gcc3qjuwaz4ue6cium5c5fo2fgakyd.onion;
|
|
|
|
http2 on;
|
|
listen 80;
|
|
|
|
limit_req zone=all burst=5 delay=5;
|
|
limit_req zone=allm burst=5 delay=5;
|
|
|
|
include /etc/nginx/snippets.d/5xx.conf;
|
|
|
|
location = /.well-known/ari.lt/openpgpkey/policy {
|
|
include /etc/nginx/snippets.d/global-resource.conf;
|
|
return 200 "";
|
|
}
|
|
|
|
location = /.well-known/openpgpkey/ari.lt/hu/qfckua8a7bfyw78pn18y63jp9xkjnqoa {
|
|
include /etc/nginx/snippets.d/global-resource.conf;
|
|
alias /var/www/ari-web/ari.lt/.well-known/openpgpkey/hu/qfckua8a7bfyw78pn18y63jp9xkjnqoa;
|
|
}
|
|
|
|
location / {
|
|
include /etc/nginx/snippets.d/paranoia-headers.conf;
|
|
return 301 http://arija664fy4c6zhfbsytbqcbz5gcc3qjuwaz4ue6cium5c5fo2fgakyd.onion/;
|
|
}
|
|
}
|