Move Immich URL to secrets

This commit is contained in:
2025-11-25 15:03:38 -07:00
parent c6cb4867ea
commit cbab9b3949
2 changed files with 3 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ timer = None
def trigger_scan():
"""Trigger a library scan in Immich."""
logging.info("Triggering Immich library scan.")
url = f"https://photos.dns.t0.vc/api/libraries/{secrets.LIBRARY_UUID}/scan"
url = f"{secrets.IMMICH_URL}/api/libraries/{secrets.LIBRARY_UUID}/scan"
headers = {
'Accept': 'application/json',
'x-api-key': secrets.IMMICH_API_KEY,

View File

@@ -1,3 +1,5 @@
IMMICH_URL = 'https://photos.example.com'
IMMICH_API_KEY = ''
LIBRARY_UUID = ''