mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Use single server deploy by default
This commit is contained in:
parent
9c65d28933
commit
4a686e9fce
4 changed files with 14 additions and 6 deletions
|
|
@ -3,3 +3,4 @@ CLOUD_GAME_COORDINATOR_ANALYTICS_INJECT=true
|
|||
CLOUD_GAME_COORDINATOR_SERVER_ADDRESS=
|
||||
CLOUD_GAME_COORDINATOR_SERVER_HTTPS=true
|
||||
CLOUD_GAME_COORDINATOR_SERVER_TLS_DOMAIN=cloudretro.io
|
||||
CLOUD_GAME_COORDINATOR_DEBUG=true
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
COORDINATORS="167.172.70.98 cloudretro.io"
|
||||
COORDINATORS="167.172.70.98"
|
||||
DOCKER_IMAGE_TAG=dev
|
||||
DO_ADDRESS_LIST="cloud-gaming cloud-gaming-eu cloud-gaming-usw"
|
||||
SPLIT_HOSTS=1
|
||||
#DO_ADDRESS_LIST="cloud-gaming cloud-gaming-eu cloud-gaming-usw"
|
||||
#SPLIT_HOSTS=1
|
||||
USER=root
|
||||
WORKERS=${WORKERS:-5}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
#CLOUD_GAME_STORAGE_KEY=https://objectstorage.eu-frankfurt-1.oraclecloud.com/p/VVlJPTNcP28wlnBXtA0ezjD5fTut2T01qz5TVwdNejQc6OR1DF5VYYjKTTP2HIlL/n/frmb1qagq0wf/b/cloud-retro-st-001/o/
|
||||
#CLOUD_GAME_STORAGE_PROVIDER=oracle
|
||||
CLOUD_GAME_WORKER_NETWORK_COORDINATORADDRESS=cloudretro.io
|
||||
CLOUD_GAME_WORKER_NETWORK_PUBLICADDRESS=cloudretro.io
|
||||
CLOUD_GAME_WORKER_NETWORK_SECURE=true
|
||||
CLOUD_GAME_WORKER_SERVER_ADDRESS=:80
|
||||
CLOUD_GAME_WORKER_SERVER_HTTPS=true
|
||||
CLOUD_GAME_WORKER_SERVER_TLS_ADDRESS=:443
|
||||
CLOUD_GAME_WORKER_SERVER_TLS_ADDRESS=:444
|
||||
CLOUD_GAME_WORKER_SERVER_TLS_DOMAIN=cloudretro.io
|
||||
CLOUD_GAME_WORKER_DEBUG=true
|
||||
|
|
|
|||
8
.github/workflows/cd/deploy-app.sh
vendored
8
.github/workflows/cd/deploy-app.sh
vendored
|
|
@ -54,6 +54,10 @@ IP_LIST=${IP_LIST:-}
|
|||
# a list of machines mark some addresses to deploy only a coordinator there
|
||||
COORDINATORS=${COORDINATORS:-}
|
||||
|
||||
if [ -z "$SPLIT_HOSTS" ]; then
|
||||
IP_LIST+=$COORDINATORS
|
||||
fi
|
||||
|
||||
# Digital Ocean operations
|
||||
#DO_TOKEN
|
||||
DO_ADDRESS_LIST=${DO_ADDRESS_LIST:-}
|
||||
|
|
@ -147,6 +151,8 @@ for ip in $IP_LIST; do
|
|||
cmd+=" worker"
|
||||
deploy_coordinator=0
|
||||
deploy_worker=1
|
||||
else
|
||||
cmd+=" worker"
|
||||
fi
|
||||
|
||||
# override run command
|
||||
|
|
@ -159,6 +165,8 @@ for ip in $IP_LIST; do
|
|||
break
|
||||
fi
|
||||
done
|
||||
else
|
||||
cmd+=" coordinator"
|
||||
fi
|
||||
|
||||
# build Docker container env file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue