diff --git a/common/bbs.conf b/common/bbs.conf new file mode 100644 index 0000000..e504c1d --- /dev/null +++ b/common/bbs.conf @@ -0,0 +1,12 @@ +add_header Onion-Location http://bbs.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri; +add_header X-I2P-Location http://vern6wnypbds4y6zdht5j4ruufbtb4zlcm3baez5w72wjtgiw6ea.b32.i2p$request_uri; +access_log off; +error_log /var/log/nginx/error.log crit; + +location / { + proxy_pass http://10.0.3.223/; + 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 +} diff --git a/common/ftelnet.conf b/common/ftelnet.conf new file mode 100644 index 0000000..9257b64 --- /dev/null +++ b/common/ftelnet.conf @@ -0,0 +1,7 @@ +add_header Onion-Location http://ftelnet.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri; +add_header X-I2P-Location http://vernzscupwi6rmlkdivib3q54iqc6fa6bjwe2prxqt3x7mqv4ezq.b32.i2p$request_uri; +root /var/www/ftelnet/release; + +location / { + index index.html; +} diff --git a/common/hat.conf b/common/hat.conf new file mode 100644 index 0000000..3e66207 --- /dev/null +++ b/common/hat.conf @@ -0,0 +1,12 @@ +add_header Onion-Location http://hat.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri; +add_header X-I2P-Location http://verndu4wjpud2cs7yoqfbcoorqn2nwajuxi2qdoas2vg4zdddf5a.b32.i2p$request_uri; + +location / { + proxy_pass http://localhost:3991/; + proxy_redirect off; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_cache mycache; +} + diff --git a/common/rssbridge.conf b/common/rssbridge.conf new file mode 100644 index 0000000..53c97b0 --- /dev/null +++ b/common/rssbridge.conf @@ -0,0 +1,16 @@ +add_header Onion-Location http://rb.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri; +add_header X-I2P-Location http://vern4nm37gbhaly4gkoxw4njqoyd5bmkgzjbumtpccmqxlilud3q.b32.i2p$request_uri; + +root /var/www/rssbridge; +index index.php index.html index.htm; + +location / { + try_files $uri $uri/ /index.php; +} + +location ~ \.php$ { + fastcgi_pass unix:/run/php/php7.4-fpm.sock; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include /etc/nginx/snippets/fastcgi.conf; +} diff --git a/conf.d/bbs.conf b/conf.d/bbs.conf new file mode 100644 index 0000000..a9ff980 --- /dev/null +++ b/conf.d/bbs.conf @@ -0,0 +1,38 @@ +server { + listen 80; + listen [::]:80; + + server_name bbs.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion; + + subs_filter_types text/html text/css text/xml application/javascript text/plain; + subs_filter "ftelnet.vern.cc" "ftelnet.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion"; + + include common/bbs.conf; +} + +server { + listen 11060; + listen [::]:11060; + + server_name vern6wnypbds4y6zdht5j4ruufbtb4zlcm3baez5w72wjtgiw6ea.b32.i2p; + + subs_filter_types text/html text/css text/xml application/javascript text/plain; + subs_filter "ftelnet.vern.cc" "vernzscupwi6rmlkdivib3q54iqc6fa6bjwe2prxqt3x7mqv4ezq.b32.i2p"; + + include common/bbs.conf; +} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name bbs.vern.cc; + include common/bbs.conf; + include snippets/lets-encrypt.conf; +} + +server { + listen 80; + listen [::]:80; + return 301 https://$host$request_uri; + server_name bbs.vern.cc; +} diff --git a/conf.d/ftelnet.conf b/conf.d/ftelnet.conf new file mode 100644 index 0000000..aed845f --- /dev/null +++ b/conf.d/ftelnet.conf @@ -0,0 +1,29 @@ +server { + listen 80; + listen [::]:80; + + server_name ftelnet.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion; + + include common/ftelnet.conf; +} + +server { + listen 11060; + listen [::]:11060; + + server_name vernzscupwi6rmlkdivib3q54iqc6fa6bjwe2prxqt3x7mqv4ezq.b32.i2p; + + include common/ftelnet.conf; +} + +server { + listen 80; + listen [::]:80; + listen 443 ssl http2; + listen [::]:443 ssl http2; + include snippets/lets-encrypt.conf; + include snippets/headers.conf; + server_name ftelnet.vern.cc; + + include common/ftelnet.conf; +} diff --git a/conf.d/hat.conf b/conf.d/hat.conf new file mode 100644 index 0000000..ea355bc --- /dev/null +++ b/conf.d/hat.conf @@ -0,0 +1,32 @@ +server { + listen 80; + listen [::]:80; + + server_name hat.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion; + + include common/hat.conf; +} + +server { + listen 11061; + listen [::]:11061; + + server_name verndu4wjpud2cs7yoqfbcoorqn2nwajuxi2qdoas2vg4zdddf5a.b32.i2p; + + include common/hat.conf; +} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name hat.vern.cc; + include snippets/lets-encrypt.conf; + include common/hat.conf; +} + +server { + listen 80; + listen [::]:80; + return 301 https://$host$request_uri; + server_name hat.vern.cc; +} diff --git a/conf.d/rssbridge.conf b/conf.d/rssbridge.conf new file mode 100644 index 0000000..8727397 --- /dev/null +++ b/conf.d/rssbridge.conf @@ -0,0 +1,33 @@ +server { + listen 80; + listen [::]:80; + + server_name rb.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion rssbridge.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion; + + include common/rssbridge.conf; +} + +server { + listen 11062; + listen [::]:11062; + + server_name vern4nm37gbhaly4gkoxw4njqoyd5bmkgzjbumtpccmqxlilud3q.b32.i2p; + + include common/rssbridge.conf; +} + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name rb.vern.cc rssbridge.vern.cc; + include snippets/lets-encrypt.conf; + include common/rssbridge.conf; +} + +server { + listen 80; + listen [::]:80; + return 301 https://$host$request_uri; + server_name rb.vern.cc rssbridge.vern.cc; +} +