feat: gifbox (#287)

* feat: Add gifbox integration

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

* feat: Update services to v0.13.8

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

---------

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
pull/288/head
Jacob Schlecht 1 week ago committed by GitHub
parent d59a061718
commit c4b0827234
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -20,6 +20,7 @@ Below are guides provided by the core team and by the community. Contributions t
- [Placing Stoat Behind Other Reverse Proxies](#placing-stoat-behind-other-reverse-proxies)
- [NGINX](#nginx)
- [Making Your Instance Invite-only](#making-your-instance-invite-only)
- [Enabling the Gif Picker](#enabling-the-gif-picker)
## Placing Stoat Behind Other Reverse Proxies
@ -149,3 +150,16 @@ docker compose exec database mongosh
use revolt
db.invites.insertOne({ _id: "enter_an_invite_code_here" })
```
## Enabling the Gif Picker
To enable the gif picker, you must create a Gifbox account and create an api key. Go to [gifbox.me](https://gifbox.me) and make an account. After creating an account and logging in, go to your account settings page by clicking your email in the top right. On your settings page, create an api key. Copy the api key and put it on the bottom of your secrets.env file like so:
```bash
REVOLT__API__SECURITY__TENOR_KEY='<yourapikey>'
```
Restart the stoat-gifbox service by running `docker compose down gifbox && docker compose up -d gifbox`.
The gifpicker should now work.

@ -78,7 +78,7 @@ services:
# API server
api:
image: ghcr.io/stoatchat/api:v0.13.6
image: ghcr.io/stoatchat/api:v0.13.8
env_file: secrets.env
depends_on:
database:
@ -95,7 +95,7 @@ services:
# Events service
events:
image: ghcr.io/stoatchat/events:v0.13.6
image: ghcr.io/stoatchat/events:v0.13.8
env_file: secrets.env
depends_on:
database:
@ -110,7 +110,7 @@ services:
# File server
autumn:
image: ghcr.io/stoatchat/file-server:v0.13.6
image: ghcr.io/stoatchat/file-server:v0.13.8
env_file: secrets.env
depends_on:
database:
@ -125,7 +125,7 @@ services:
# Metadata and image proxy
january:
image: ghcr.io/stoatchat/proxy:v0.13.6
image: ghcr.io/stoatchat/proxy:v0.13.8
env_file: secrets.env
volumes:
- type: bind
@ -135,7 +135,7 @@ services:
# Tenor proxy
gifbox:
image: ghcr.io/stoatchat/gifbox:v0.13.6
image: ghcr.io/stoatchat/gifbox:v0.13.8
env_file: secrets.env
volumes:
- type: bind
@ -145,7 +145,7 @@ services:
# Regular task daemon
crond:
image: ghcr.io/stoatchat/crond:v0.13.6
image: ghcr.io/stoatchat/crond:v0.13.8
env_file: secrets.env
depends_on:
database:
@ -160,7 +160,7 @@ services:
# Push notification daemon
pushd:
image: ghcr.io/stoatchat/pushd:v0.13.6
image: ghcr.io/stoatchat/pushd:v0.13.8
env_file: secrets.env
depends_on:
database:
@ -177,7 +177,7 @@ services:
# Voice ingress daemon
voice-ingress:
image: ghcr.io/stoatchat/voice-ingress:v0.13.6
image: ghcr.io/stoatchat/voice-ingress:v0.13.8
env_file: secrets.env
restart: always
depends_on:

@ -50,11 +50,11 @@ if test -f "Revolt.toml"; then
fi
echo "Overwriting existing config."
echo "Renaming Revolt.toml to Revolt.toml.old"
mv Revolt.toml Revolt.toml.old
mv Revolt.toml Revolt.toml.old || true
echo "Renaming livekit.yml to livekit.yml.old"
mv livekit.yml livekit.yml.old
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
mv compose.override.yml compose.override.yml.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
@ -184,6 +184,7 @@ 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
# client config
@ -200,6 +201,7 @@ echo "api = \"https://$DOMAIN/api\"" >> Revolt.toml
echo "events = \"wss://$DOMAIN/ws\"" >> Revolt.toml
echo "autumn = \"https://$DOMAIN/autumn\"" >> Revolt.toml
echo "january = \"https://$DOMAIN/january\"" >> Revolt.toml
echo "gifbox = \"https://$DOMAIN/gifbox\"" >> Revolt.toml
# livekit hostname
echo "" >> Revolt.toml
@ -247,6 +249,8 @@ if [[ -n "$VIDEO_ENABLED" ]]; then
echo "video_aspect_ratio = [0.3, 10]" >> Revolt.toml
fi
echo "If you would like to enable the gif picker, please see the Guides section of the Readme"
if [[ $IS_OVERWRITING -eq 1 ]]; then
echo "Overwrote existing config. If any custom configuration was present in old Revolt.toml, you may now copy it over from Revolt.toml.old."
fi
Loading…
Cancel
Save