This commit is contained in:
root 2022-11-09 11:53:09 -05:00
parent 9ce7a07d28
commit 9da6496ae7
2 changed files with 42 additions and 0 deletions

10
common/gnunet.conf Normal file
View File

@ -0,0 +1,10 @@
add_header Onion-Location http://gn.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
#add_header X-I2P-Location http://vernaqj2qr2pijpgvf3od6ssc3ulz3nv52gwr3hba5l6humuzmgq.b32.i2p$request_uri;
location / {
proxy_pass http://127.0.0.1:2087/;
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;
}

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

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