nginx-configs/conf.d/mirror.conf

47 lines
2.0 KiB
Plaintext

server {
listen 80;
listen [::]:80;
server_name mirror.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion mirrors.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
location /nav.html {
return 200 '<link rel=stylesheet href="/style.css"><header><a href="http://mirror.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"><img src="http://vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion/media/vern.png" alt="home" class="navlogo"></a><nav><a href="http://vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion/privpol">PrivacyPolicy</a> <a href="http://vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion/donations">Donate</a></nav></header><hr>';
}
include common/mirror.conf;
}
server {
listen 11008;
listen [::]:11008;
server_name vernxqcyexg5qsmtel4fjs7f7o6uktrqwuhqc4dde4xf2l5v55aq.b32.i2p;
location /nav.html {
return 200 '<link rel=stylesheet href="/style.css"><header><a href="http://vernxqcyexg5qsmtel4fjs7f7o6uktrqwuhqc4dde4xf2l5v55aq.b32.i2p"><img src="http://verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p/media/vern.png" alt="home" class="navlogo"></a><nav><a href="http://verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p/privpol">PrivacyPolicy</a> <a href="http://verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p/donations">Donate</a></nav></header><hr>';
}
include common/mirror.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
include snippets/lets-encrypt.conf;
include snippets/headers.conf;
server_name mirror.vern.cc mirrors.vern.cc;
location /nav.html {
return 200 '<link rel=stylesheet href="/style.css"><header><a href="//mirror.vern.cc"><img src="//vern.cc/media/vern.png" alt="home" class="navlogo"></a><nav><a href="//vern.cc/privpol">PrivacyPolicy</a> <a href="//vern.cc/donations">Donate</a></nav></header><hr>';
}
include common/mirror.conf;
}
server {
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;
server_name mirror.vern.cc mirrors.vern.cc;
}