add agreper

This commit is contained in:
root 2022-10-13 02:33:29 -04:00
parent 45a3dc5446
commit af6f3dc6cf
3 changed files with 42 additions and 0 deletions

9
common/agreper.conf Normal file
View File

@ -0,0 +1,9 @@
add_header Onion-Location http://ag.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
location / {
proxy_pass http://127.0.0.1:8007/;
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

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

1
sites-enabled/agreper.conf Symbolic link
View File

@ -0,0 +1 @@
/etc/nginx/sites-available/agreper.conf