From 7011f3389300bc08743c88a8a446be461e44072c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 18 Dec 2019 03:45:11 -0600 Subject: Update bnw package and service. --- gn/services/bnw-container.scm | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'gn/services') 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/;"))) + )) + )))))))) -- cgit v1.2.3