docs: update install script and unit file
parent
0a750b700f
commit
b60ccb0a61
23
README.md
23
README.md
|
@ -23,6 +23,13 @@ Usage: configui [options]
|
|||
-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
|
||||
|
||||
```json
|
||||
|
@ -41,6 +48,22 @@ Usage: configui [options]
|
|||
|
||||
`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
|
||||
|
||||
### Files
|
||||
|
|
Loading…
Reference in New Issue