aboutsummaryrefslogtreecommitdiff
path: root/gn/services/bnw-container.scm
blob: 13a93175a38c96b278a8d52a5bf8cef345d8ee94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(define-module (gn services bnw-container))

(use-modules (gnu)
             (gn packages bnw))
(use-service-modules base networking web)

(operating-system
  (host-name "bnw")
  (timezone "Etc/UTC")
  (locale "en_US.utf8")

  (bootloader (bootloader-configuration
               (bootloader grub-bootloader)
               (target "does-not-matter")))
  (file-systems %base-file-systems)
  ;; No firmware for VMs
  (firmware '())

  (services (list (service dhcp-client-service-type)
                  (service php-fpm-service-type)
                  (service nginx-service-type
                           (nginx-configuration
                             (server-blocks
                               (list
                                 (nginx-server-configuration
                                   (server-name '("Bayesian Network"))
                                   (listen '("8888"))
                                   (root bnw)
                                   (locations
                                     (list
                                       (nginx-php-location)
                                       (nginx-location-configuration
                                         (uri "/sourcecodes/data/")
                                         (body (list "alias /tmp/bnw/;")))
                                       ))
                                   ))))))))