diff options
author | Frederick Muriuki Muriithi | 2024-08-07 13:10:59 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-08-07 13:10:59 -0500 |
commit | 2411ec65a333a43b5fcc5030a2b24a95845fd6ec (patch) | |
tree | 03a49d74b7e55e80b016f24acd8dfd485b5dba7d /genenetwork | |
parent | 153f96ee367a4b596c17da5b3926d76477eae070 (diff) | |
download | gn-machines-2411ec65a333a43b5fcc5030a2b24a95845fd6ec.tar.gz |
gn-uploader: Add `AUTH_SERVER_URL` to the configurations.
Diffstat (limited to 'genenetwork')
-rw-r--r-- | genenetwork/services/genenetwork.scm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/genenetwork/services/genenetwork.scm b/genenetwork/services/genenetwork.scm index 83a33fd..3691314 100644 --- a/genenetwork/services/genenetwork.scm +++ b/genenetwork/services/genenetwork.scm @@ -119,6 +119,8 @@ (default "/var/genenetwork")) (secrets gn-uploader-configuration-secrets (default "/etc/genenetwork/gn-uploader-secrets.py")) + (auth-server-url gn-uploader-auth-server-url + (default "https://auth.genenetwork.org")) (log-level gn-uploader-log-level (default "WARNING"))) (define %genenetwork-accounts @@ -514,7 +516,7 @@ a @code{<genenetwork-configuration>} record." (define (gn-uploader-gunicorn-app config) (match-record config <gn-uploader-configuration> - (gn-uploader sql-uri port data-directory secrets log-level) + (gn-uploader sql-uri port data-directory secrets log-level auth-server-url) ;; If we mapped only the mysqld.sock socket file, it would break ;; when the external mysqld server is restarted. (let ((database-mapping (file-system-mapping @@ -526,7 +528,8 @@ a @code{<genenetwork-configuration>} record." `(("UPLOADER_SECRETS" ,secrets) ("SQL_URI" ,sql-uri) ("UPLOAD_FOLDER" ,(string-append data-directory - "/uploads")))))) + "/uploads")) + ("AUTH_SERVER_URL" ,auth-server-url))))) (gn-uploader-profile (profile (content (package->development-manifest gn-uploader)) (allow-collisions? #t)))) |