frontend: Make config file overridable

This commit is contained in:
Paul Bienkowski 2021-02-28 20:29:47 +01:00
parent 4779965377
commit 2c5ba1d5a0
4 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
local
config.json
src/config.json

View file

@ -44,6 +44,7 @@ services:
- ./frontend/public:/opt/obs/frontend/public
- ./frontend/tsconfig.json:/opt/obs/frontend/tsconfig.json
- ./frontend/package.json:/opt/obs/frontend/package.json
- ./frontend/src/config.dev.json:/opt/obs/frontend/src/config.json
environment:
- PORT=3000
links:

View file

@ -0,0 +1,8 @@
{
"auth": {
"server": "https://api.example.com",
"clientId": "CHANGEME",
"scope": "*",
"redirectUri": "https://example.com/redirect"
}
}