diff --git a/.env.example b/.env.example index 602e1c9..bef7913 100644 --- a/.env.example +++ b/.env.example @@ -15,18 +15,23 @@ HOSTNAME=http://local.revolt.chat # URL to where the Revolt app is publicly accessible REVOLT_APP_URL=http://local.revolt.chat +# VITE_xxx variables are used in the new frontend https://github.com/revoltchat/frontend + # URL to where the API is publicly accessible REVOLT_PUBLIC_URL=http://local.revolt.chat/api VITE_API_URL=http://local.revolt.chat/api # URL to where the WebSocket server is publicly accessible REVOLT_EXTERNAL_WS_URL=ws://local.revolt.chat/ws +VITE_WS_URL=ws://local.revolt.chat/ws # URL to where Autumn is publicly available AUTUMN_PUBLIC_URL=http://local.revolt.chat/autumn +VITE_MEDIA_URL=http://local.revolt.chat/autumn # URL to where January is publicly available JANUARY_PUBLIC_URL=http://local.revolt.chat/january +VITE_PROXY_URL=http://local.revolt.chat/january ## diff --git a/Revolt.toml b/Revolt.toml new file mode 100644 index 0000000..611edfa --- /dev/null +++ b/Revolt.toml @@ -0,0 +1,97 @@ +[database] +mongodb = "mongodb://database" +redis = "redis://redis/" + +[hosts] +app = "http://local.revolt.chat" +api = "http://local.revolt.chat/api" +events = "ws://local.revolt.chat/ws" +autumn = "http://local.revolt.chat/autumn" +january = "http://local.revolt.chat/january" +voso_legacy = "" +voso_legacy_ws = "" + +[api] + +[api.registration] +invite_only = false + +[api.smtp] +host = "" +username = "" +password = "" +from_address = "" + +[api.vapid] +private_key = "LS0tLS1CRUdJTiBFQyBQUklWQVRFIEtFWS0tLS0tCk1IY0NBUUVFSUJSUWpyTWxLRnBiVWhsUHpUbERvcEliYk1yeVNrNXpKYzVYVzIxSjJDS3hvQW9HQ0NxR1NNNDkKQXdFSG9VUURRZ0FFWnkrQkg2TGJQZ2hEa3pEempXOG0rUXVPM3pCajRXT1phdkR6ZU00c0pqbmFwd1psTFE0WAp1ZDh2TzVodU94QWhMQlU3WWRldVovWHlBdFpWZmNyQi9BPT0KLS0tLS1FTkQgRUMgUFJJVkFURSBLRVktLS0tLQo" +public_key = "BGcvgR-i2z4IQ5Mw841vJvkLjt8wY-FjmWrw83jOLCY52qcGZS0OF7nfLzuYbjsQISwVO2HXrmf18gLWVX3Kwfw=" + +[api.fcm] +api_key = "" + +[api.apn] +pkcs8 = "" +key_id = "" +team_id = "" + +[api.security] +authifier_shield_key = "" +voso_legacy_token = "" +trust_cloudflare = false + +[api.security.captcha] +hcaptcha_key = "" +hcaptcha_sitekey = "" + +[api.workers] +max_concurrent_connections = 50 + +[features] +webhooks_enabled = false + +[features.limits] + +[features.limits.global] +group_size = 100 +message_embeds = 5 +message_replies = 5 +message_reactions = 20 +server_emoji = 100 +server_roles = 200 +server_channels = 200 + +new_user_days = 3 + +[features.limits.new_user] +outgoing_friend_requests = 5 + +bots = 2 +message_length = 2000 +message_attachments = 5 +servers = 100 + +attachment_size = 20000000 +avatar_size = 4000000 +background_size = 6000000 +icon_size = 2500000 +banner_size = 6000000 +emoji_size = 500000 + +[features.limits.default] +outgoing_friend_requests = 10 + +bots = 5 +message_length = 2000 +message_attachments = 5 +servers = 100 + +attachment_size = 20000000 +avatar_size = 4000000 +background_size = 6000000 +icon_size = 2500000 +banner_size = 6000000 +emoji_size = 500000 + +[sentry] +api = "" +events = "" diff --git a/docker-compose.yml b/docker-compose.yml index 72f35e3..eb18ec3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: "3.8" - services: # MongoDB database database: @@ -28,8 +26,10 @@ services: restart: always env_file: .env ports: - - "80:80" - - "443:443" + # Using 2000, 2001 because the host will also have a reverse proxy. + # Change to directly use 80:80 and 443:443 if you are not using a reverse proxy on the host machine. + - "2000:80" + # - "2001:443" volumes: - ./Caddyfile:/etc/caddy/Caddyfile - ./data/caddy-data:/data @@ -44,6 +44,8 @@ services: - redis - caddy restart: always + volumes: + - ./Revolt.toml:/Revolt.toml # Events service (quark) events: @@ -54,6 +56,8 @@ services: - redis - caddy restart: always + volumes: + - ./Revolt.toml:/Revolt.toml # Web App (revite) web: