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 <dadadah@echoha.us>

* chore: Update gitignore, backup .env.web

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

* fix: Re-add gifbox since its not sent by the api yet

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>

---------

Signed-off-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
Co-authored-by: Pecacheu <3608878+Pecacheu@users.noreply.github.com>
pull/303/head
Jacob Schlecht 2 weeks ago committed by GitHub
parent c9b71bb836
commit 3b48ccc722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

8
.gitignore vendored

@ -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

@ -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

@ -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

Loading…
Cancel
Save