Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Revolt.toml.old
livekit.yml.old
secrets.env
secrets.env.old
stoat.json

compose.override.yml
compose.override.yml.old
10 changes: 10 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
{$HOSTNAME} {
route /.well-known/stoat {
uri strip_prefix /.well-known/stoat
header {
Access-Control-Allow-Origin *
}
file_server {
root /stoat.json
}
}

route /api* {
uri strip_prefix /api
reverse_proxy http://api:14702 {
Expand Down
1 change: 1 addition & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ services:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./data/caddy-data:/data
- ./data/caddy-config:/config
- ./stoat.json:/stoat.json
networks:
default:
aliases:
Expand Down
4 changes: 4 additions & 0 deletions generate_config.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash

set -e
SECRETS_FOUND=0
IS_OVERWRITING=0
DOMAIN=
Expand Down Expand Up @@ -185,6 +186,9 @@ echo "VITE_MEDIA_URL=https://$DOMAIN/autumn" >> .env.web
echo "VITE_PROXY_URL=https://$DOMAIN/january" >> .env.web
echo "VITE_CFG_ENABLE_VIDEO=$VIDEO_ENABLED" >> .env.web

# client config
echo -n "{\"api\":\"https://$DOMAIN/api\"}" > stoat.json

# hostnames
echo "# All secrets are stored in secrets.env" > Revolt.toml
echo "# Any configuration added to this file will be overwritten by generate_config on run; however," >> Revolt.toml
Expand Down