Merge "Add skyline port settings"

This commit is contained in:
Zuul 2022-06-23 08:40:38 +00:00 committed by Gerrit Code Review
commit 7a3287503f
3 changed files with 30 additions and 1 deletions

View File

@ -69,7 +69,13 @@ Skyline 的吉祥物是九色鹿。九色鹿源自于敦煌壁画《九色鹿本
```bash
docker rm -f skyline_bootstrap
```
> 如果需要修改 skyline 端口号,则在以下命令中添加 `-e LISTEN_ADDRESS=<ip:port>`
>
> `LISTEN_ADDRESS` 默认为 `0.0.0.0:9999`
```bash
docker run -d --name skyline --restart=always -v /etc/skyline/skyline.yaml:/etc/skyline/skyline.yaml -v /tmp/skyline:/tmp --net=host 99cloud/skyline:latest
```
@ -133,7 +139,13 @@ Skyline 的吉祥物是九色鹿。九色鹿源自于敦煌壁画《九色鹿本
```bash
docker rm -f skyline_bootstrap
```
> 如果需要修改 skyline 端口号,则在以下命令中添加 `-e LISTEN_ADDRESS=<ip:port>`
>
> `LISTEN_ADDRESS` 默认为 `0.0.0.0:9999`
```bash
docker run -d --name skyline --restart=always -v /etc/skyline/skyline.yaml:/etc/skyline/skyline.yaml --net=host 99cloud/skyline:latest
```

View File

@ -69,7 +69,13 @@ Skyline's mascot is the nine-color deer. The nine-color deer comes from Dunhuang
```bash
docker rm -f skyline_bootstrap
```
> If you need to modify skyline port, add `-e LISTEN_ADDRESS=<ip:port>` in the following command
>
> `LISTEN_ADDRESS` defaults to `0.0.0.0:9999`
```bash
docker run -d --name skyline --restart=always -v /etc/skyline/skyline.yaml:/etc/skyline/skyline.yaml -v /tmp/skyline:/tmp --net=host 99cloud/skyline:latest
```
@ -133,7 +139,13 @@ Skyline's mascot is the nine-color deer. The nine-color deer comes from Dunhuang
```bash
docker rm -f skyline_bootstrap
```
> If you need to modify skyline port, add `-e LISTEN_ADDRESS=<ip:port>` in the following command
>
> `LISTEN_ADDRESS` defaults to `0.0.0.0:9999`
```bash
docker run -d --name skyline --restart=always -v /etc/skyline/skyline.yaml:/etc/skyline/skyline.yaml --net=host 99cloud/skyline:latest
```

View File

@ -13,7 +13,12 @@ if [[ "${!KOLLA_BOOTSTRAP[*]}" ]]; then
exit 0
fi
skyline-nginx-generator -o /etc/nginx/nginx.conf
if [[ -n "${LISTEN_ADDRESS}" ]]; then
skyline-nginx-generator -o /etc/nginx/nginx.conf --listen-address "${LISTEN_ADDRESS}"
else
skyline-nginx-generator -o /etc/nginx/nginx.conf
fi
nginx
echo "Running command: ${CMD[*]}"