Update local.conf

This commit is contained in:
KoalaSat
2024-07-07 13:47:10 +00:00
committed by GitHub
parent d4a28881a2
commit 09f8dbb687

View File

@ -40,6 +40,21 @@ server {
limit_req zone=fivepersec burst=10;
}
location /coordinator {
# Blocks admin access from the public onion address
if ($host ~* "robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion") {
return 403; # Forbidden
}
proxy_pass http://robosats_gunicorn_rest;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
# Replace with the onion hidden service of your coordinator
add_header Onion-Location https://robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion$request_uri;
}
location /ws/ {
# websockets are passed to Daphne
proxy_pass http://robosats_daphne_websocket;