aboutsummaryrefslogtreecommitdiff
path: root/gn/deploy
diff options
context:
space:
mode:
authorpjotrp2019-12-21 04:43:16 -0600
committerpjotrp2019-12-21 04:43:16 -0600
commit4ab5fa7dbe1eb3312dbba68bd0f7ec7a97befb91 (patch)
tree82109ae476f6a7dacbee43b05cb31c716803c1f7 /gn/deploy
parent715755405c50338e9b5d89e1ce24e9756ca2a668 (diff)
downloadguix-bioinformatics-4ab5fa7dbe1eb3312dbba68bd0f7ec7a97befb91.tar.gz
Add nginx listening on 8080
Diffstat (limited to 'gn/deploy')
-rw-r--r--gn/deploy/machines/myserver.scm34
1 files changed, 25 insertions, 9 deletions
diff --git a/gn/deploy/machines/myserver.scm b/gn/deploy/machines/myserver.scm
index 4f30a5b..9a9923d 100644
--- a/gn/deploy/machines/myserver.scm
+++ b/gn/deploy/machines/myserver.scm
@@ -1,13 +1,14 @@
;; This is an operating system configuration template
;; for a "bare bones" setup, with no X11 display server.
-(use-modules (gnu))
-(use-service-modules networking ssh)
-(use-package-modules screen)
+(use-modules (gnu)
+ (gnu packages web))
+(use-service-modules networking ssh web)
+(use-package-modules screen ruby)
(operating-system
(host-name "komputilo")
- (timezone "Europe/Berlin")
+ (timezone "Europe/Amsterdam")
(locale "en_US.utf8")
;; Boot in "legacy" BIOS mode, assuming /dev/sdX is the
@@ -26,8 +27,9 @@
;; account is implicit, and is initially created with the
;; empty password.
(users (cons (user-account
- (name "alice")
- (comment "Bob's sister")
+ (name "pjotr")
+ (password "$6$EoLVFsCpLywbQmy1$aJJ3dIrgIH4UtiTVynIZ0MiC667w4C5ybygGisUnUfusPrgxZ7ncz.Cjv67EJPA6VW3EPFbOaiadQzxFn2sLb.")
+ (comment "Pjotr")
(group "users")
;; Adding the account to the "wheel" group
@@ -39,12 +41,26 @@
%base-user-accounts))
;; Globally-installed packages.
- (packages (cons screen %base-packages))
+ ; (packages (cons screen %base-packages))
+
+ (packages (append (list
+ screen nginx)
+ %base-packages))
+
;; Add services to the baseline: a DHCP client and
- ;; an SSH server.
+ ;; an SSH server with nginx
(services (append (list (service dhcp-client-service-type)
(service openssh-service-type
(openssh-configuration
- (port-number 2222))))
+ ; (authorized-keys
+ ; `(("pjotr" ,(local-file "/home/pjotr/.ssh/authorized_keys"))))
+ (password-authentication? #t)
+ (port-number 2222)))
+ (service nginx-service-type
+ (nginx-configuration
+ (server-blocks
+ (list (nginx-server-configuration
+ (listen '("8080")))))))
+ )
%base-services)))