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. Note : for cypress tests, use 127.0.0.1 instead of localhost.
-
VITE_GOOGLE_CLIENT_ID: Used for authenticating users via Google OAuth during login.
.NET Server Configuration
- Move
Properties/exampleSettings.jsontoProperties/appsettings.json.
mv 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 -
GifWorkerUrl: URL of the Cloudflare Worker for querying Tenor GIFs. Defaults to
"gif-worker.liventcord-a60.workers.dev" -
ProxyWorkerUrl: Url of the Cloudflare Worker for proxying external resources. Defaults to
"proxy.liventcord-a60.workers.dev" -
MediaProxyApiUrl: Url of the gin media proxy server for proxying external resources on media previews. Defaults to
http://localhost:5000 -
WsUrl: Url of the websocket golang server for emitting events. Defaults to
http://localhost:8080 -
RTCWsUrl: Url of the video websocket golang server for audio/voice. Defaults to
http://localhost:5010 -
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 -
BuildFrontend: Whether to build frontend assets on .net server start or not. Defaults to
true -
RedisConnectionString: Connection string for connecting redis. Defaults to
localhost:6379 -
RedisConnectionLimit: Maximum number of concurrent redis connectons. Defaults to 1.
Gin WS Server Configuration
cd Liventcord/server/go-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 gin ws server Defaults to
none
Gin Media Proxy Server Configuration
cd Liventcord/server/proxy-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 -
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 Defaults to
none
Golang Video Server Configuration
cd Liventcord/server/video-server
- Move
.env.exampleto.env.
mv .env.example .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