This commit is contained in:
root 2023-01-12 02:35:45 +00:00
parent ad9fafbb9e
commit 4ef8cf2a97
3 changed files with 54 additions and 1 deletions

19
common/suds.conf Normal file
View File

@ -0,0 +1,19 @@
add_header Onion-Location http://sd.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernrdigztvu3427stlditjofgkuoc3b7kbkxvlecaej5ufe4l5q.b32.i2p$request_uri;
location / {
proxy_pass http://10.0.3.57:2945;
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;
}
location /proxy/ {
proxy_pass http://10.0.3.57:2945;
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 suds;
}

View File

@ -1,4 +1,4 @@
proxy_cache_path /tmp/cache keys_zone=quetre:10m inactive=60m;
proxy_cache_path /tmp/cache keys_zone=quetre:60m inactive=60m;
server {
listen 80;

34
conf.d/suds.conf Normal file
View File

@ -0,0 +1,34 @@
proxy_cache_path /tmp/suds-cache keys_zone=suds:60m inactive=60m;
server {
listen 80;
listen [::]:80;
server_name sd.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion suds.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion snopes.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/suds.conf;
}
server {
listen 11100;
listen [::]:11100;
server_name vernrdigztvu3427stlditjofgkuoc3b7kbkxvlecaej5ufe4l5q.b32.i2p;
include common/suds.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
include snippets/lets-encrypt.conf;
server_name sd.vern.cc suds.vern.cc snopes.vern.cc;
include common/suds.conf;
}
server {
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;
server_name sd.vern.cc suds.vern.cc snopes.vern.cc;
}