mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
docs: add descriptions for gh-pages
Signed-off-by: kunish <kunish.butt@gmail.com>
This commit is contained in:
parent
e19e53d0f6
commit
9927f3de7f
30
README.md
30
README.md
@ -25,6 +25,32 @@ Cloudflare Pages: https://metacubexd.pages.dev
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
### Enable external-controller in your config file
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
external-controller: 0.0.0.0:9090
|
||||||
|
```
|
||||||
|
|
||||||
|
### Use pre-built assets from gh-pages branch
|
||||||
|
|
||||||
|
> First time setup
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git clone https://github.com/metacubex/metacubexd.git -b gh-pages /etc/clash-meta/ui
|
||||||
|
```
|
||||||
|
|
||||||
|
Make sure you have external-ui directory set correctly in your config file
|
||||||
|
|
||||||
|
> Update
|
||||||
|
|
||||||
|
```shell
|
||||||
|
git -C /etc/clash-meta/ui pull
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
external-ui: /etc/clash-meta/ui
|
||||||
|
```
|
||||||
|
|
||||||
### Run inside Docker
|
### Run inside Docker
|
||||||
|
|
||||||
> docker cli
|
> docker cli
|
||||||
@ -35,7 +61,7 @@ Running
|
|||||||
docker run -d --restart always -p 80:80 --name metacubexd ghcr.io/metacubex/metacubexd
|
docker run -d --restart always -p 80:80 --name metacubexd ghcr.io/metacubex/metacubexd
|
||||||
```
|
```
|
||||||
|
|
||||||
Update and restart
|
Update and Restart
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker pull ghcr.io/metacubex/metacubexd && docker restart metacubexd
|
docker pull ghcr.io/metacubex/metacubexd && docker restart metacubexd
|
||||||
@ -72,7 +98,7 @@ Running
|
|||||||
docker compose up -d
|
docker compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
Update and restart
|
Update and Restart
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker compose pull && docker compose up -d
|
docker compose pull && docker compose up -d
|
||||||
|
Loading…
Reference in New Issue
Block a user