mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-19 16:15:16 +00:00
Update configuration
This commit is contained in:
@ -15,13 +15,31 @@ export interface DatabaseConfiguration {
|
||||
dbPrefix : string
|
||||
}
|
||||
|
||||
export interface RTCRelayConfiguration {
|
||||
ip ?: string,
|
||||
token: string,
|
||||
}
|
||||
|
||||
export interface Configuration {
|
||||
|
||||
// Server listening port
|
||||
port: number,
|
||||
|
||||
// Access to user data
|
||||
storageURL : string,
|
||||
storagePath : string,
|
||||
|
||||
// Database connection configuration
|
||||
database : DatabaseConfiguration,
|
||||
|
||||
// URL of trusted proxy (to get remote IP address)
|
||||
proxy ?: string,
|
||||
force_clients_https ?: boolean
|
||||
|
||||
// Set access-control-allow-origin to require HTTPS
|
||||
force_clients_https ?: boolean,
|
||||
|
||||
// RTC (for calls) proxy configuration
|
||||
rtc_relay ?: RTCRelayConfiguration,
|
||||
}
|
||||
|
||||
export class ConfigurationHelper {
|
||||
|
Reference in New Issue
Block a user