Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing #82, preparing for new ui #90

Closed
wants to merge 2 commits into from
Closed
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
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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


##
Expand Down
97 changes: 97 additions & 0 deletions Revolt.toml
Original file line number Diff line number Diff line change
@@ -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 = ""
12 changes: 8 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

services:
# MongoDB database
database:
Expand Down Expand Up @@ -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
Expand All @@ -44,6 +44,8 @@ services:
- redis
- caddy
restart: always
volumes:
- ./Revolt.toml:/Revolt.toml

# Events service (quark)
events:
Expand All @@ -54,6 +56,8 @@ services:
- redis
- caddy
restart: always
volumes:
- ./Revolt.toml:/Revolt.toml

# Web App (revite)
web:
Expand Down