1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +00:00

Update configuration

This commit is contained in:
Pierre HUBERT 2020-04-10 08:54:27 +02:00
parent 9d3275024f
commit 98a43a4fd8
2 changed files with 27 additions and 1 deletions

View File

@ -7,5 +7,13 @@
"dbName": "comunic", "dbName": "comunic",
"user": "pierre", "user": "pierre",
"password": "pierre" "password": "pierre"
},
"proxy": null,
"force_clients_https": null,
"rtc_relay": {
"ip": "127.0.0.1",
"token": "SecretToken"
} }
} }

View File

@ -15,13 +15,31 @@ export interface DatabaseConfiguration {
dbPrefix : string dbPrefix : string
} }
export interface RTCRelayConfiguration {
ip ?: string,
token: string,
}
export interface Configuration { export interface Configuration {
// Server listening port
port: number, port: number,
// Access to user data
storageURL : string, storageURL : string,
storagePath : string, storagePath : string,
// Database connection configuration
database : DatabaseConfiguration, database : DatabaseConfiguration,
// URL of trusted proxy (to get remote IP address)
proxy ?: string, 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 { export class ConfigurationHelper {