security: gitignore runtime secrets, add config and token templates
This commit is contained in:
parent
12949c1bba
commit
bb30691c1e
4 changed files with 39 additions and 5 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -32,3 +32,7 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
|
|||
|
||||
# Finder (MacOS) folder config
|
||||
.DS_Store
|
||||
|
||||
# Runtime secrets – never commit real values
|
||||
tokens.json
|
||||
config.json
|
||||
|
|
|
|||
28
config.example.json
Normal file
28
config.example.json
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"alwaysOn": false,
|
||||
"refreshRate": 10000,
|
||||
"layout": {
|
||||
"header-left": "clock",
|
||||
"header-right": "weather",
|
||||
"main-1": "sl",
|
||||
"main-2": "sbb",
|
||||
"footer-1": "spotify",
|
||||
"footer-2": "spacer",
|
||||
"footer-3": "system"
|
||||
},
|
||||
"spotify": {
|
||||
"clientId": "",
|
||||
"clientSecret": ""
|
||||
},
|
||||
"weather": {
|
||||
"plz": ""
|
||||
},
|
||||
"sl": {
|
||||
"stationId": "",
|
||||
"stationName": ""
|
||||
},
|
||||
"sbb": {
|
||||
"stationId": "",
|
||||
"stationName": ""
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"stationId": "9182",
|
||||
"stationName": "Hökarängen",
|
||||
"refreshRate": 30000
|
||||
}
|
||||
7
tokens.example.json
Normal file
7
tokens.example.json
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"spotify": {
|
||||
"accessToken": "",
|
||||
"refreshToken": "",
|
||||
"expiresAt": 0
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue