subs_filter base url

This commit is contained in:
root 2022-10-25 04:30:16 -04:00
parent 8060fcdd7d
commit 8bc9938b75
6 changed files with 25 additions and 7 deletions

View File

@ -1,6 +1,8 @@
add_header Onion-Location http://git.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernj47t2vz4qiobsrcaj6eqhaquqe5qsaejga2glol4b2snhcfa.b32.i2p$request_uri;
subs_filter "git.vern.cc" "$host";
location / {
client_max_body_size 100m;
proxy_pass http://localhost:3000/;

View File

@ -1,6 +1,8 @@
add_header Onion-Location http://hd.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernfy3k7royqfe7pg6wgzj53ipltd5nb4acjtjmwgpqrkxwmcla.b32.i2p$request_uri;
subs_filter "hd.vern.cc" "$host";
location / {
proxy_pass http://127.0.0.1:5007;
proxy_set_header Host $host;

View File

@ -1,5 +1,8 @@
add_header Onion-Location http://lm.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernyxzw3aktrg3v5qpkj4eyiwc4iucdw3czwesop6f466joq6wa.b32.i2p$request_uri;
subs_filter "lm.vern.cc" "$host";
# Enable compression for JS/CSS/HTML bundle, for improved client load times.
# It might be nice to compress JSON, but leaving that out to protect against potential
# compression+encryption information leak attacks like BREACH.

View File

@ -1,11 +1,18 @@
add_header Onion-Location http://lx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernziqfqvweijfaacmwazohgpdo2bt2ib2jlupt2pwwu27bhgxq.b32.i2p$request_uri;
root /var/www/librex;
index index.php index.html index.htm;
subs_filter_types text/html text/css text/xml;
subs_filter "{{main_url}}" $host;
location / {
proxy_pass http://192.168.122.53:8002/;
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";
subs_filter_types text/html text/css text/xml;
subs_filter "{{main_url}}" $host;
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
fastcgi_pass 192.168.122.53:9005;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/snippets/fastcgi.conf;
}

View File

@ -1,6 +1,8 @@
add_header Onion-Location http://todo.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://verniioll6ezxh2ns3l2hbt76zlklmwqguomnjgg37olnmbhgodq.b32.i2p$request_uri;
subs_filter "todo.vern.cc" "$host";
location / {
root /var/www/vikunja-frontend/dist;
try_files $uri $uri/ /;

View File

@ -1,6 +1,8 @@
add_header Onion-Location http://yn.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
add_header X-I2P-Location http://vernlebgbpxnln2oluosc4hrnjr7byg2e5pqiwi2phhwmudbhirq.b32.i2p$request_uri;
subs_filter "yn.vern.cc" "$host";
location / {
proxy_pass http://192.168.122.30:7777/;
proxy_redirect off;