diff options
Diffstat (limited to 'gn/services')
-rw-r--r-- | gn/services/bnw-container.scm | 18 |
1 files changed, 12 insertions, 6 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/;"))) + )) + )))))))) |