Read ssl cert and key for https from .env file
This commit is contained in:
parent
d17ba9f735
commit
df4e3a97c0
5 changed files with 20 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue