synapseadmin, whoogle on rlvm
This commit is contained in:
parent
99b82ee6da
commit
245646f074
|
@ -1,5 +1,5 @@
|
|||
add_header Onion-Location http://vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
|
||||
root /sshfs/websiteupdate/website;
|
||||
root /var/www/website;
|
||||
index index.html;
|
||||
ssi on;
|
||||
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
add_header Onion-Location http://whoogle.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
|
||||
|
||||
location / {
|
||||
proxy_pass https://whoogle.vern.cc/;
|
||||
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";
|
||||
}
|
||||
location / {
|
||||
proxy_pass http://192.168.122.53:5001/;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $host; # so Whoogle knows domain
|
||||
proxy_http_version 1.1; # to keep alive
|
||||
proxy_set_header Connection ""; # to keep alive
|
||||
}
|
||||
|
|
|
@ -202,7 +202,7 @@ server {
|
|||
|
||||
add_header Onion-Location http://mtrx.vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion$request_uri;
|
||||
|
||||
location ~ ^(/_matrix|/_synapse/client) {
|
||||
location ~ ^(/_matrix|/_synapse) {
|
||||
# note: do not add a path (even a single /) after the port in `proxy_pass`,
|
||||
# otherwise nginx will canonicalise the URI and cause signature verification
|
||||
# errors.
|
||||
|
@ -215,6 +215,10 @@ server {
|
|||
# Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
|
||||
client_max_body_size 1024M;
|
||||
}
|
||||
location /synapseadmin {
|
||||
root /var/www/synapse-admin;
|
||||
index index.html;
|
||||
}
|
||||
## well-known
|
||||
location /.well-known/matrix/support {
|
||||
add_header Access-Control-Allow-Origin '*' always;
|
||||
|
|
Loading…
Reference in New Issue