Set Enviroment Variables
Vite Frontend Configuration
- Move .env.example to .env
Configuration Options
-
VITE_BACKEND_URL: The URL of the .NET backend server that the frontend will use for API requests.
-
VITE_GOOGLE_CLIENT_ID: Used for authenticating users via Google OAuth during login.
.NET Server Configuration
- Move
Properties/exampleSettings.jsontoProperties/appsettings.json.
cp Properties/exampleSettings.json Properties/appsettings.json
Configuration Options
-
Host: Hostname the server will run at. Defaults to
0.0.0.0 -
Port: Port the server will run at. Defaults to
5005 -
RemoteConnection: Connection string for the database.
-
DatabaseType: Type of database server for storage. Supported options:
- PostgreSQL
- MySQL
- MariaDB
- Oracle
- Firebird
- SqlServer
- SQLite
Defaults to
sqlite
-MaxPoolSize:
Maximum number of connections in the database pool.
Defaults to 5
-MinPoolSize:
Minimum number of connections in the database pool.
Defaults to 0
-
SqlitePath: File path where SQLite will store data. Defaults to
Data/liventcord.db -
JwtAccessTokenExpiryDays: Expire days for jwt tokens Defaults to
7 -
JwtKey: Jwt key used for signing authentication, Must be set for server.
-
FrontendUrl: Url to add cors headers at. Defaults to
none -
MediaWorkerUrl:
URL of the Cloudflare Media Worker for storing app files. -
MediaApiUrl:
URL of the go media proxy service. Defaults tohttp://localhost:5000Defaults to
none
See how to set up the worker. -
WsUrl: Url of the go websocket server for broadcasting events. Defaults to
http://localhost:8080 -
MaxAvatarSize: Maximum upload size(in MB) for avatar on guilds and profiles. Defaults to
3 -
MaxAttachmentsSize: Maximum attachment size (in MB) allowed for message uploads. Defaults to
30 -
BotToken: A token used to secure the discord importer bot endpoints for admin access. Defaults to
random generated number -
EnableMetadataIndexing: Index urls in message content for metadata display. Defaults to
true -
MetadataDomainLimit: The maximum number of metadata records that can be indexed per domain within a day. Defaults to
100 -
ServeFrontend: Controls whether the .NET server serves the frontend (SPA, assets, and redirects). Defaults to
true -
ServeLanding: Controls whether the .NET server serves the landing page. Defaults to
true -
RedisConnectionString: Connection string for connecting redis. Defaults to
localhost:6379 -
RedisConnectionLimit: Maximum number of concurrent redis connections. Defaults to 1.
-
TenorApiKey: Api key to use for fetching gifs from tenor.
-
GiphyApiKey: Api key to use for fetching gifs from giphy.
Go WS Server Configuration
cd liventcord/server/ws-api
- Move
.example.envto.env.
mv .example.env .env
Configuration Options
-
Host: Hostname the server will run at. Defaults to
0.0.0.0 -
Port: Port the server will run at. Defaults to
8080 -
DotnetApiUrl: The URL used to verify the WebSocket authentication by passing the cookie to the .NET server. Defaults to
http://localhost:5005 -
RedisURI: Connection string for connecting redis. Defaults to
localhost:6379 -
AppMode: Use release or debug mode. Defaults to debug.
-
AdminPassword: Password that will be used for authenticating go ws server Defaults to
none -
AllowedOrigins:
Comma-separated list of origins that are allowed to connect to the WebSocket server via CORS.
Defaults tohttp://localhost:3000
Go Media Proxy Server Configuration
cd liventcord/server/media-api
- Move
.env.exampleto.env.
mv .env.example .env
Configuration Options
-
ExternalMediaLimit: Size limit(in GB) for total media storage on proxying external resources. If limit is reached, oldest records will be replaced with new files. Defaults to
10 -
MainServerUrl: Url of main .net core server for sending attachments at. Defaults to
http://localhost:5005 -
CloudflareMediaWorkerUrl
- URL of the Cloudflare media worker.
- See How to set up cloudflare media worker.
-
AddToBlacklist: Specifies a list of domains or URLs to be added to the blacklist. This should be provided as a JSON array string.
-
AdminPassword: Password that will be used for authenticating proxy server