This commit is contained in:
root 2022-11-25 15:42:15 +00:00
parent fd0fd6428c
commit c7371c7381
3 changed files with 42 additions and 3 deletions

10
common/penpot.conf Normal file
View File

@ -0,0 +1,10 @@
add_header Onion-Location http://pp.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernbrpw2ivyireljmadepiwl2zwukfs3qq3neqiygdzd2swyb3a.b32.i2p$request_uri;
location / {
proxy_pass http://localhost:9002/;
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;
}

View File

@ -8,8 +8,6 @@ server {
listen [::]:80;
server_name mail.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
# rewrite ^ https://$server_name$request_uri permanent;
include common/mail.conf;
}
@ -29,5 +27,4 @@ server {
include snippets/lets-encrypt.conf;
include common/mail.conf;
ssl_protocols TLSv1.2 TLSv1.3;
}

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

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