mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 13:29:22 +00:00
Update configuration
This commit is contained in:
parent
9d3275024f
commit
98a43a4fd8
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user