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():
|
def trigger_scan():
|
||||||
"""Trigger a library scan in Immich."""
|
"""Trigger a library scan in Immich."""
|
||||||
logging.info("Triggering Immich library scan.")
|
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 = {
|
headers = {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
'x-api-key': secrets.IMMICH_API_KEY,
|
'x-api-key': secrets.IMMICH_API_KEY,
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
IMMICH_URL = 'https://photos.example.com'
|
||||||
|
|
||||||
IMMICH_API_KEY = ''
|
IMMICH_API_KEY = ''
|
||||||
|
|
||||||
LIBRARY_UUID = ''
|
LIBRARY_UUID = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user