-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d7e44c
commit 2bc1e69
Showing
2 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,53 @@ | |
## web | ||
cd web | ||
npm install | ||
npm run build | ||
npm run build | ||
|
||
## How to use | ||
|
||
Build caddy with this package | ||
|
||
```bash | ||
xcaddy build --with github.com/kingreatwill/caddy-modules/[email protected] | ||
``` | ||
|
||
Add a http config | ||
|
||
``` | ||
{ | ||
admin localhost:2019 | ||
} | ||
:2018 { | ||
route { | ||
admin_ui | ||
reverse_proxy localhost:2019 { | ||
header_up Host localhost:2019 | ||
} | ||
} | ||
} | ||
``` | ||
or 只允许GET,防止被修改 | ||
``` | ||
{ | ||
debug | ||
admin localhost:2019 | ||
order admin_ui before reverse_proxy | ||
} | ||
:2018 { | ||
admin_ui | ||
reverse_proxy localhost:2019 { | ||
method GET | ||
header_up Host localhost:2019 | ||
} | ||
} | ||
``` | ||
|
||
## Feature | ||
|
||
- Show Server Config | ||
- Show Upstream | ||
- Show PKI | ||
- Load Server Config and Save Config to Server | ||
- View Metrics from "/metrics" |