add libmedium

This commit is contained in:
root 2022-11-02 09:52:38 -04:00
parent e989005190
commit f971c2b11b
2 changed files with 44 additions and 0 deletions

12
common/libmedium.conf Normal file
View File

@ -0,0 +1,12 @@
add_header Onion-Location http://md.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernaqj2qr2pijpgvf3od6ssc3ulz3nv52gwr3hba5l6humuzmgq.b32.i2p$request_uri;
subs_filter md.vern.cc $host;
location / {
proxy_pass http://10.0.3.57:6543/;
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/libmedium.conf Normal file
View File

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