From d6f327dc2e8f3f6b0eadc1fa38ac183afa2b6819 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 28 Feb 2019 13:39:44 +0100 Subject: [PATCH] Change nextcloud domain --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 6282bbe..c4ec176 100644 --- a/app/main.py +++ b/app/main.py @@ -71,7 +71,7 @@ class MyHandler(BaseHTTPRequestHandler): # Edit nextcloud account, set quota and email auth = HTTPBasicAuth(os.environ['NEXTCLOUD_ADMIN_USER'], os.environ['NEXTCLOUD_ADMIN_PASSWORD']) - url = f'https://drive.{os.environ["DOMAIN"]}/ocs/v1.php/cloud/users/' + target_email + url = f'https://{os.environ["DOMAIN"]}/ocs/v1.php/cloud/users/' + target_email headers = {'OCS-APIRequest': 'true'} r1 = requests.put(url, data={'key': 'email', 'value': fallback_email}, headers=headers, auth=auth) r2 = requests.put(url, data={'key': 'quota', 'value': nextcloud_quota}, headers=headers, auth=auth) -- GitLab