frontend: Make config file overridable
This commit is contained in:
parent
4779965377
commit
2c5ba1d5a0
4 changed files with 10 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
||||||
local
|
local
|
||||||
config.json
|
config.json
|
||||||
|
src/config.json
|
||||||
|
|
|
@ -44,6 +44,7 @@ services:
|
||||||
- ./frontend/public:/opt/obs/frontend/public
|
- ./frontend/public:/opt/obs/frontend/public
|
||||||
- ./frontend/tsconfig.json:/opt/obs/frontend/tsconfig.json
|
- ./frontend/tsconfig.json:/opt/obs/frontend/tsconfig.json
|
||||||
- ./frontend/package.json:/opt/obs/frontend/package.json
|
- ./frontend/package.json:/opt/obs/frontend/package.json
|
||||||
|
- ./frontend/src/config.dev.json:/opt/obs/frontend/src/config.json
|
||||||
environment:
|
environment:
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
links:
|
links:
|
||||||
|
|
8
frontend/src/config.json.example
Normal file
8
frontend/src/config.json.example
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"auth": {
|
||||||
|
"server": "https://api.example.com",
|
||||||
|
"clientId": "CHANGEME",
|
||||||
|
"scope": "*",
|
||||||
|
"redirectUri": "https://example.com/redirect"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue