Skip to content

Commit

Permalink
Merge pull request #37 from Samourai-Wallet/feat_mydojo_url_admintool
Browse files Browse the repository at this point in the history
automatic redirect of onion address to maintenance tool
  • Loading branch information
kenshin-samourai authored Jul 13, 2019
2 parents bb8d4ad + f55c407 commit f941f31
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/my-dojo/nginx/dojo.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ server {
proxy_pass http://node:8080/;
}

# Redirect onion address to maintenance tool
location = / {
return 301 /admin;
}

# Serve remaining requests
location / {
return 200 '{"status":"ok"}';
Expand Down

0 comments on commit f941f31

Please sign in to comment.