security: gitignore runtime secrets, add config and token templates

This commit is contained in:
cediackermann 2026-04-20 18:27:24 +02:00
parent 12949c1bba
commit bb30691c1e
4 changed files with 39 additions and 5 deletions

4
.gitignore vendored
View file

@ -32,3 +32,7 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# Finder (MacOS) folder config # Finder (MacOS) folder config
.DS_Store .DS_Store
# Runtime secrets never commit real values
tokens.json
config.json

28
config.example.json Normal file
View 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": ""
}
}

View file

@ -1,5 +0,0 @@
{
"stationId": "9182",
"stationName": "Hökarängen",
"refreshRate": 30000
}

7
tokens.example.json Normal file
View file

@ -0,0 +1,7 @@
{
"spotify": {
"accessToken": "",
"refreshToken": "",
"expiresAt": 0
}
}