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