Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add caddy config example
  • Loading branch information
nzlov authored Mar 29, 2023
1 parent e0aba02 commit e678a68
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,22 @@ emmm.... I don't know how to describe this action.... it is really very easy...
4. if you deploy this standalone, on login page click "Change Server" then, input server url.
5. input apikey , click "Login"

### C: use caddy
```
domain.com {
@ui {
path_regexp (/$)|(\.)
}
handle @ui {
root * /www/headscale-ui
try_files {path} /index.html
file_server
}
reverse_proxy 127.0.0.1:7070
}
```

## Notice
1. ServerUrl and ApiKey are saved in localstorage in plain text.
2. you will only need login once.if apikey is invalid , system will require login again.

0 comments on commit e678a68

Please sign in to comment.