aboutsummaryrefslogtreecommitdiff
path: root/gn/services
diff options
context:
space:
mode:
Diffstat (limited to 'gn/services')
-rw-r--r--gn/services/bnw-container.scm18
-rw-r--r--gn/services/gitea-dump.service2
-rw-r--r--gn/services/gitea-nocontainer.service2
3 files changed, 14 insertions, 8 deletions
diff --git a/gn/services/bnw-container.scm b/gn/services/bnw-container.scm
index cd8562f..13a9317 100644
--- a/gn/services/bnw-container.scm
+++ b/gn/services/bnw-container.scm
@@ -1,6 +1,7 @@
(define-module (gn services bnw-container))
-(use-modules (gnu))
+(use-modules (gnu)
+ (gn packages bnw))
(use-service-modules base networking web)
(operating-system
@@ -22,9 +23,14 @@
(server-blocks
(list
(nginx-server-configuration
- (root "/srv/http/bnw")
+ (server-name '("Bayesian Network"))
+ (listen '("8888"))
+ (root bnw)
(locations
- (list (nginx-php-location)))
- (listen '("8880"))
- (ssl-certificate #f)
- (ssl-certificate-key #f)))))))))
+ (list
+ (nginx-php-location)
+ (nginx-location-configuration
+ (uri "/sourcecodes/data/")
+ (body (list "alias /tmp/bnw/;")))
+ ))
+ ))))))))
diff --git a/gn/services/gitea-dump.service b/gn/services/gitea-dump.service
index b9b310d..c177334 100644
--- a/gn/services/gitea-dump.service
+++ b/gn/services/gitea-dump.service
@@ -4,7 +4,7 @@ Wants=gitea.service
[Service]
Type=oneshot
-Environment="GITEA_COMMAND=$(GUIX_PACKAGE_PATH=/home/efraimf/workspace/guix-bioinformatics /var/guix/profiles/per-user/efraimf/current-guix/bin/guix build gitea)/bin/gitea"
+Environment="GITEA_COMMAND=/usr/local/guix-profiles/gitea/bin/gitea"
ExecStart=/bin/su -l gitea -c 'GITEA_WORK_DIR=/var/lib/git/gitea HOME=/var/lib/git/gitea ${GITEA_COMMAND} dump'
[Install]
diff --git a/gn/services/gitea-nocontainer.service b/gn/services/gitea-nocontainer.service
index b18e235..6784e51 100644
--- a/gn/services/gitea-nocontainer.service
+++ b/gn/services/gitea-nocontainer.service
@@ -3,7 +3,7 @@ Description=Gitea git server and web ui
Wants=guix-daemon.service
[Service]
-Environment="GITEA_COMMAND=$(GUIX_PACKAGE_PATH=/home/efraimf/workspace/guix-bioinformatics /var/guix/profiles/per-user/efraimf/current-guix/bin/guix build gitea)/bin/gitea"
+Environment="GITEA_COMMAND=/usr/local/guix-profiles/gitea/bin/gitea"
ExecStart=/bin/su -l gitea -c 'GITEA_WORK_DIR=/var/lib/git/gitea HOME=/var/lib/git/gitea ${GITEA_COMMAND} --port 3300'
[Install]