aboutsummaryrefslogtreecommitdiff
path: root/genenetwork/services/genenetwork.scm
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-13 13:59:57 -0500
committerFrederick Muriuki Muriithi2024-08-13 13:59:57 -0500
commitd90ba9bf628f30c31e8d2d2277ee39a3592713f5 (patch)
tree2dc4e95a9d12e3cf75ba7e68d379307adbb4edd0 /genenetwork/services/genenetwork.scm
parent2411ec65a333a43b5fcc5030a2b24a95845fd6ec (diff)
downloadgn-machines-d90ba9bf628f30c31e8d2d2277ee39a3592713f5.tar.gz
gn-uploader: Configure link to GN2 server.
Diffstat (limited to 'genenetwork/services/genenetwork.scm')
-rw-r--r--genenetwork/services/genenetwork.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/genenetwork/services/genenetwork.scm b/genenetwork/services/genenetwork.scm
index 3691314..37793a5 100644
--- a/genenetwork/services/genenetwork.scm
+++ b/genenetwork/services/genenetwork.scm
@@ -121,6 +121,8 @@
(default "/etc/genenetwork/gn-uploader-secrets.py"))
(auth-server-url gn-uploader-auth-server-url
(default "https://auth.genenetwork.org"))
+ (gn2-server-url gn-uploader-gn2-server-url
+ (default "https://genenetwork.org"))
(log-level gn-uploader-log-level (default "WARNING")))
(define %genenetwork-accounts
@@ -516,7 +518,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 auth-server-url)
+ (gn-uploader sql-uri port data-directory secrets log-level auth-server-url gn2-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
@@ -529,7 +531,8 @@ a @code{<genenetwork-configuration>} record."
("SQL_URI" ,sql-uri)
("UPLOAD_FOLDER" ,(string-append data-directory
"/uploads"))
- ("AUTH_SERVER_URL" ,auth-server-url)))))
+ ("AUTH_SERVER_URL" ,auth-server-url)
+ ("GN2_SERVER_URL" ,gn2-server-url)))))
(gn-uploader-profile (profile
(content (package->development-manifest gn-uploader))
(allow-collisions? #t))))