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