add Yarn.Social

This commit is contained in:
root 2022-10-23 09:59:13 -04:00
parent 5ad823093b
commit 714c408ea1
2 changed files with 43 additions and 0 deletions

11
common/yarn.conf Normal file
View File

@ -0,0 +1,11 @@
add_header Onion-Location http://yn.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernlebgbpxnln2oluosc4hrnjr7byg2e5pqiwi2phhwmudbhirq.b32.i2p$request_uri;
location / {
proxy_pass http://192.168.122.30:7777/;
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_cookie_path / "/; Secure; HttpOnly; SameSite=lax";
}

32
conf.d/yarn.conf Normal file
View File

@ -0,0 +1,32 @@
server {
listen 80;
listen [::]:80;
server_name yn.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion yarn.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion twtxt.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/yarn.conf;
}
server {
listen 11056;
listen [::]:11056;
server_name vernlebgbpxnln2oluosc4hrnjr7byg2e5pqiwi2phhwmudbhirq.b32.i2p;
include common/yarn.conf;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name yn.vern.cc yarn.vern.cc twtxt.vern.cc;
include common/yarn.conf;
include snippets/lets-encrypt.conf;
}
server {
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;
server_name yn.vern.cc yarn.vern.cc twtxt.vern.cc;
}