mirror of
https://github.com/RoboSats/robosats-deploy.git
synced 2025-12-24 13:57:05 +00:00
Update local.conf
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user