Update local.conf

This commit is contained in:
KoalaSat
2024-07-07 13:44:09 +00:00
committed by GitHub
parent 5c2165fffa
commit d4a28881a2

View File

@ -41,6 +41,20 @@ server {
limit_req zone=tenpersec burst=10;
}
location /coordinator {
# Blocks admin access from the public onion address
if ($host ~* "robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.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://robosats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion$request_uri;
}
location /ws/ {
# websockets are passed to Daphne