From 245646f07485da6131dc4c117e097f2092c7e1e2 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 28 Sep 2022 22:25:07 -0400 Subject: [PATCH] synapseadmin, whoogle on rlvm --- common/website.conf | 2 +- common/whoogle.conf | 16 +++++++--------- sites-available/matrix.conf | 6 +++++- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/common/website.conf b/common/website.conf index ba59538..eeff644 100644 --- a/common/website.conf +++ b/common/website.conf @@ -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; diff --git a/common/whoogle.conf b/common/whoogle.conf index 404b940..5fe7e7d 100644 --- a/common/whoogle.conf +++ b/common/whoogle.conf @@ -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 + } diff --git a/sites-available/matrix.conf b/sites-available/matrix.conf index e56c99c..147af2a 100644 --- a/sites-available/matrix.conf +++ b/sites-available/matrix.conf @@ -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;