1
0
Fork 0

Make URLs, etc. configurable

master
Dustin 2023-12-10 08:58:54 -06:00
parent a984d643a7
commit 31dcec331e
2 changed files with 9 additions and 4 deletions

View File

@ -12,6 +12,10 @@ Environment=PINENTRY_PASSWORD_FILE=/run/secrets/xactfetch
Environment=FIREFLY_IMPORT_SECRET_FILE=/run/secrets/firefly-import-secret
Environment=FIREFLY_IMPORT_PASSWORD_FILE=/run/secrets/firefly-import-password
Environment=FIREFLY_IMPORT_USER=svc.xactfetch
Environment=FIREFLY_III_URL=https://firefly.pyrocufflink.blue
Environment=FIREFLY_IMPORT_URL=https://firefly-importer.pyrocufflink.blue
Environment=NTFY_URL=https://ntfy.pyrocufflink.net
Environment=NTFY_TOPIC=dustin
Secret=xactfetch
Secret=firefly-import-password
Secret=firefly-import-secret

View File

@ -20,10 +20,11 @@ from playwright.sync_api import sync_playwright
log = logging.getLogger('xactfetch')
NTFY_URL = 'https://ntfy.pyrocufflink.net'
NTFY_TOPIC = 'dustin'
FIREFLY_III_URL = 'https://firefly.pyrocufflink.blue'
FIREFLY_III_IMPORTER_URL = 'https://dustin.import.firefly.pyrocufflink.blue'
NTFY_URL = os.environ['NTFY_URL']
NTFY_TOPIC = os.environ['NTFY_TOPIC']
FIREFLY_III_URL = os.environ['FIREFLY_III_URL']
FIREFLY_III_IMPORTER_URL = os.environ['FIREFLY_IMPORT_URL']
ACCOUNTS = {
'commerce': {
'8357': 1,