Move Immich URL to secrets
This commit is contained in:
2
main.py
2
main.py
@@ -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,
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
IMMICH_URL = 'https://photos.example.com'
|
||||
|
||||
IMMICH_API_KEY = ''
|
||||
|
||||
LIBRARY_UUID = ''
|
||||
|
||||
Reference in New Issue
Block a user