Read ssl cert and key for https from .env file

This commit is contained in:
phil 2025-01-31 04:36:38 +01:00
parent d17ba9f735
commit df4e3a97c0
5 changed files with 20 additions and 11 deletions

View file

@ -12,8 +12,6 @@ interface Settings {
resourceServerUrl: string
resourceScopes: string[]
authProvider: string
sslCertFile: string
sslKeyFile: string
tokenSandbox: boolean
}
@ -22,6 +20,7 @@ export let settings: Settings
export let authServer: AxiosInstance
export let resourceServer: AxiosInstance
// The settings.json file is expected at the server's base url
axios.get("settings.json").then().then(
resp => {
settings = resp.data