config
This commit is contained in:
17
.env
Normal file
17
.env
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# VAPID Keys for Web Push
|
||||||
|
VAPID_PRIVATE_KEY=
|
||||||
|
VAPID_PUBLIC_KEY=
|
||||||
|
|
||||||
|
# Flic Button Configuration
|
||||||
|
FLIC_BUTTON1_SERIAL=your_button1_serial
|
||||||
|
FLIC_BUTTON2_SERIAL=your_button2_serial
|
||||||
|
FLIC_BUTTON3_SERIAL=your_button3_serial
|
||||||
|
|
||||||
|
# Subscription Storage
|
||||||
|
SUBSCRIPTIONS_FILE=data/subscriptions.json
|
||||||
|
|
||||||
|
# Logging Configuration
|
||||||
|
LOG_LEVEL=INFO
|
||||||
|
|
||||||
|
# VAPID Claim Email
|
||||||
|
VAPID_CLAIM_EMAIL=mailto:your-email@example.com
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,3 @@
|
|||||||
.env
|
|
||||||
myenv
|
myenv
|
||||||
.vscode
|
.vscode
|
||||||
subscriptions.json
|
subscriptions.json
|
||||||
@@ -60,7 +60,7 @@ def generate_vapid_keys():
|
|||||||
'FLIC_BUTTON3_SERIAL': env_vars.get('FLIC_BUTTON3_SERIAL', 'your_button3_serial'),
|
'FLIC_BUTTON3_SERIAL': env_vars.get('FLIC_BUTTON3_SERIAL', 'your_button3_serial'),
|
||||||
|
|
||||||
# Subscription Storage
|
# Subscription Storage
|
||||||
'SUBSCRIPTIONS_FILE': env_vars.get('SUBSCRIPTIONS_FILE', '/app/subscriptions.json'),
|
'SUBSCRIPTIONS_FILE': env_vars.get('SUBSCRIPTIONS_FILE', 'data/subscriptions.json'),
|
||||||
|
|
||||||
# Logging Configuration
|
# Logging Configuration
|
||||||
'LOG_LEVEL': env_vars.get('LOG_LEVEL', 'INFO'),
|
'LOG_LEVEL': env_vars.get('LOG_LEVEL', 'INFO'),
|
||||||
|
|||||||
Reference in New Issue
Block a user