This commit is contained in:
root 2022-11-28 11:50:24 +00:00
parent 22387a4106
commit bc5c8c8d61
3 changed files with 46 additions and 3 deletions

11
common/miniflux.conf Normal file
View File

@ -0,0 +1,11 @@
add_header Onion-Location http://mf.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vern4yi5vpg5cp42pwxndb6jingckjofyxxvpwaonolqmn74wbqq.b32.i2p$request_uri;
location / {
proxy_pass http://localhost:1055/;
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;
proxy_cookie_path / "/; Secure; HttpOnly; SameSite=lax";
}

View File

@ -2,7 +2,7 @@ server {
listen 80;
listen [::]:80;
server_name dm.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion dumb.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion genius.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
server_name db.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion dumb.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion genius.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion;
include common/dumb.conf;
}
@ -19,7 +19,7 @@ server {
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name dm.vern.cc dumb.vern.cc genius.vern.cc;
server_name db.vern.cc dumb.vern.cc genius.vern.cc;
include snippets/lets-encrypt.conf;
include common/dumb.conf;
}
@ -28,5 +28,5 @@ server {
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;
server_name dm.vern.cc dumb.vern.cc genius.vern.cc;
server_name db.vern.cc dumb.vern.cc genius.vern.cc;
}

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

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