Skip to content

Commit

Permalink
说明
Browse files Browse the repository at this point in the history
  • Loading branch information
kingreatwill committed Dec 14, 2023
1 parent 1d7e44c commit 2bc1e69
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
admin localhost:2019
order markdown before file_server
order sentry first
order admin_ui before reverse_proxy
}
:2018 {
markdown {
Expand All @@ -23,4 +24,11 @@
header_up Host localhost:2019
}
}
}
:2016 {
admin_ui
reverse_proxy localhost:2019 {
method GET
header_up Host localhost:2019
}
}
51 changes: 50 additions & 1 deletion admin-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 2bc1e69

Please sign in to comment.