PGP Suite

This commit is contained in:
root 2023-01-01 03:27:00 +00:00
parent bfdc6c7543
commit 59ad40f98f
9 changed files with 101 additions and 23 deletions

4
common/pgp.conf Normal file
View File

@ -0,0 +1,4 @@
add_header Onion-Location http://pgp.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernqfnkg7oybcbrr6roinm64wkd6goetv4funbqjgtddmsexo7q.b32.i2p$request_uri;
root /var/www/pgp;
index index.html index.htm;

10
common/ruraldict.conf Normal file
View File

@ -0,0 +1,10 @@
add_header Onion-Location http://rd.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vern5cxiaufqvhv4hu5ypkvw3tiwvuinae4evdbqzrioql6s2sha.b32.i2p$request_uri;
location / {
proxy_pass http://10.0.3.57:2944/;
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/pgp.conf Normal file
View File

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

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

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