From 3b48ccc7221251c1a1f490d6a0a7284dad996560 Mon Sep 17 00:00:00 2001 From: Jacob Schlecht Date: Fri, 11 Sep 2026 17:33:47 -0600 Subject: [PATCH] feat: Update to for-web 15 (#302) * feat: Add host env to web for instance PR, drop unused env Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com> * feat: Upgrade for-web to v0.15.3 and services to v0.15.4 Signed-off-by: Jacob Schlecht * chore: Update gitignore, backup .env.web Signed-off-by: Jacob Schlecht * fix: Re-add gifbox since its not sent by the api yet Signed-off-by: Jacob Schlecht --------- Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com> Signed-off-by: Jacob Schlecht Co-authored-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com> --- .gitignore | 8 +++----- compose.yml | 22 +++++++++++----------- generate_config.sh | 10 ++++------ 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/.gitignore b/.gitignore index de23675..2630c9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,12 @@ data* +*.old +*.bak + .env .env.web Revolt.toml livekit.yml -Revolt.toml.old -livekit.yml.old secrets.env -secrets.env.old stoat.json - compose.override.yml -compose.override.yml.old diff --git a/compose.yml b/compose.yml index 741f950..b3dec4e 100644 --- a/compose.yml +++ b/compose.yml @@ -78,7 +78,7 @@ services: # API server api: - image: ghcr.io/stoatchat/api:v0.15.1 + image: ghcr.io/stoatchat/api:v0.15.4 env_file: secrets.env depends_on: database: @@ -95,7 +95,7 @@ services: # Events service events: - image: ghcr.io/stoatchat/events:v0.15.1 + image: ghcr.io/stoatchat/events:v0.15.4 env_file: secrets.env depends_on: database: @@ -110,7 +110,7 @@ services: # File server autumn: - image: ghcr.io/stoatchat/file-server:v0.15.1 + image: ghcr.io/stoatchat/file-server:v0.15.4 env_file: secrets.env depends_on: database: @@ -125,7 +125,7 @@ services: # Metadata and image proxy january: - image: ghcr.io/stoatchat/proxy:v0.15.1 + image: ghcr.io/stoatchat/proxy:v0.15.4 env_file: secrets.env volumes: - type: bind @@ -135,7 +135,7 @@ services: # Tenor proxy gifbox: - image: ghcr.io/stoatchat/gifbox:v0.15.1 + image: ghcr.io/stoatchat/gifbox:v0.15.4 env_file: secrets.env volumes: - type: bind @@ -145,7 +145,7 @@ services: # Regular task daemon crond: - image: ghcr.io/stoatchat/crond:v0.15.1 + image: ghcr.io/stoatchat/crond:v0.15.4 env_file: secrets.env depends_on: database: @@ -160,7 +160,7 @@ services: # Push notification daemon pushd: - image: ghcr.io/stoatchat/pushd:v0.15.1 + image: ghcr.io/stoatchat/pushd:v0.15.4 env_file: secrets.env depends_on: database: @@ -177,7 +177,7 @@ services: # Voice ingress daemon voice-ingress: - image: ghcr.io/stoatchat/voice-ingress:v0.15.1 + image: ghcr.io/stoatchat/voice-ingress:v0.15.4 env_file: secrets.env restart: always depends_on: @@ -191,7 +191,7 @@ services: target: /Revolt.toml livekit: - image: ghcr.io/stoatchat/livekit-server:v1.9.13 + image: ghcr.io/stoatchat/livekit-server:v1.9.14 depends_on: redis: condition: service_started @@ -222,7 +222,7 @@ services: # Web App web: - # for-web v0.14.1 - image: ghcr.io/stoatchat/for-web:0c31cf0 + # for-web v0.15.3 + image: ghcr.io/stoatchat/for-web:4017c18 restart: always env_file: .env.web \ No newline at end of file diff --git a/generate_config.sh b/generate_config.sh index ef22a33..e50716a 100755 --- a/generate_config.sh +++ b/generate_config.sh @@ -55,6 +55,8 @@ if test -f "Revolt.toml"; then mv livekit.yml livekit.yml.old || true echo "Renaming compose.override.yml to compose.override.yml.old" mv compose.override.yml compose.override.yml.old || true + echo "Renaming .env.web to .env.web.old" + mv .env.web .env.web.old || true else echo "Existing config found, in caution, this script will refuse to execute if you have existing config." if [ "$SECRETS_FOUND" -eq "0" ]; then @@ -179,13 +181,9 @@ fi # set hostname for Caddy and vite variables echo "HOSTNAME=$STOAT_HOSTNAME" > .env.web -echo "REVOLT_PUBLIC_URL=https://$DOMAIN/api" >> .env.web +echo "VITE_HOST=$DOMAIN" >> .env.web echo "VITE_API_URL=https://$DOMAIN/api" >> .env.web -echo "VITE_WS_URL=wss://$DOMAIN/ws" >> .env.web -echo "VITE_MEDIA_URL=https://$DOMAIN/autumn" >> .env.web -echo "VITE_PROXY_URL=https://$DOMAIN/january" >> .env.web -echo "VITE_GIFBOX_URL=https://$DOMAIN/gifbox" >> .env.web -echo "VITE_CFG_ENABLE_VIDEO=$VIDEO_ENABLED" >> .env.web +echo "VITE_DEV_GIFBOX_URL=https://$DOMAIN/gifbox" >> .env.web # client config echo -n "{\"api\":\"https://$DOMAIN/api\"}" > stoat.json