This commit is contained in:
root 2022-11-30 14:59:55 +00:00
parent bc5c8c8d61
commit 4fcb794bf3
3 changed files with 46 additions and 1 deletions

13
common/gothub.conf Normal file
View File

@ -0,0 +1,13 @@
add_header Onion-Location http://gh.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernohu6dvnvssx5rnyckb2vulvczx2z5lneiz6xa5rw262zru2q.b32.i2p$request_uri;
access_log off;
error_log /var/log/nginx/error.log crit;
location / {
proxy_pass http://10.0.3.57:1520/;
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
}

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

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

View File

@ -2,7 +2,7 @@ server {
listen 80;
listen [::]:80;
server_name lbry.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion librarian.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
server_name oy.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion lbry.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion librarian.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/librarian.conf;
}