2022-10-03 14:11:57 +00:00
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
2023-01-21 19:23:24 +00:00
|
|
|
server_name minetest.vern.cc;
|
2022-10-03 14:11:57 +00:00
|
|
|
include snippets/lets-encrypt.conf;
|
2022-10-19 17:40:47 +00:00
|
|
|
|
2023-01-21 19:23:24 +00:00
|
|
|
location / {
|
|
|
|
proxy_pass http://127.0.0.1:5008/;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header Host $host; # so Invidious knows domain
|
|
|
|
proxy_http_version 1.1; # to keep alive
|
|
|
|
proxy_set_header Connection ""; # to keep alive
|
|
|
|
}
|
2022-10-03 14:11:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
return 301 https://$host$request_uri;
|
2023-01-21 19:23:24 +00:00
|
|
|
server_name minetest.vern.cc;
|
2022-10-03 14:11:57 +00:00
|
|
|
}
|
|
|
|
|