docs: update install script and unit file

pull/36/head
Evan Chen 2021-10-21 01:23:54 +08:00
parent 0a750b700f
commit b60ccb0a61
1 changed files with 23 additions and 0 deletions

View File

@ -23,6 +23,13 @@ Usage: configui [options]
-v show version -v show version
``` ```
## Install
```sh
sudo rm -f /usr/local/bin/configui
sudo sh -c "curl -fsSL RELEASE_URL | tar -C /usr/local/bin/ -xz"
```
## Config ## Config
```json ```json
@ -41,6 +48,22 @@ Usage: configui [options]
`configui -f PATH/TO/CONFIG` `configui -f PATH/TO/CONFIG`
## Systemd
```ini
; /etc/systemd/system/configui.service
[Unit]
Description=CoonfigUI Server
[Service]
WorkingDirectory=/home/ubuntu/ConfigUI
ExecStart=configui -log access.log -f conf.json -bind 0.0.0.0:80
Restart=always
[Install]
WantedBy=multi-user.target
```
## Api ## Api
### Files ### Files