56 lines
1.5 KiB
Text
56 lines
1.5 KiB
Text
server {
|
|
server_name vim-or-emacs.ari.lt;
|
|
|
|
http2 on;
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
limit_req zone=all burst=5 delay=5;
|
|
limit_req zone=allm burst=5 delay=5;
|
|
|
|
add_header Onion-Location "http://vim-or-emacs.arija664fy4c6zhfbsytbqcbz5gcc3qjuwaz4ue6cium5c5fo2fgakyd.onion$request_uri" always;
|
|
include /etc/nginx/snippets.d/paranoia-headers.conf;
|
|
|
|
return 301 https://$server_name$request_uri;
|
|
}
|
|
|
|
server {
|
|
server_name vim-or-emacs.ari.lt;
|
|
|
|
http2 on;
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
|
|
include /etc/nginx/snippets.d/gzip.conf;
|
|
add_header Onion-Location "http://vim-or-emacs.arija664fy4c6zhfbsytbqcbz5gcc3qjuwaz4ue6cium5c5fo2fgakyd.onion$request_uri" always;
|
|
|
|
limit_req zone=all burst=15 delay=5;
|
|
limit_req zone=allm burst=15 delay=5;
|
|
|
|
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;
|
|
|
|
location / {
|
|
include /etc/nginx/snippets.d/proxy.conf;
|
|
proxy_pass http://127.0.0.1:8001;
|
|
}
|
|
}
|
|
|
|
server {
|
|
server_name vim-or-emacs.arija664fy4c6zhfbsytbqcbz5gcc3qjuwaz4ue6cium5c5fo2fgakyd.onion;
|
|
|
|
http2 on;
|
|
listen 80;
|
|
|
|
include /etc/nginx/snippets.d/gzip.conf;
|
|
|
|
limit_req zone=all burst=15 delay=5;
|
|
limit_req zone=allm burst=15 delay=5;
|
|
|
|
location / {
|
|
include /etc/nginx/snippets.d/proxy.conf;
|
|
proxy_pass http://127.0.0.1:8001;
|
|
}
|
|
}
|