aboutsummaryrefslogtreecommitdiff
path: root/terraform/aws/mini_environment
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-01-28 14:46:03 +0000
committerChristopher Baines <mail@cbaines.net>2018-03-29 07:28:09 +0100
commit97f6d7e326a1fd7ddcbe7cf32dc0e4c0a508913d (patch)
treefa2dceba69676cd0a2d35840fea69eb1422b52bd /terraform/aws/mini_environment
parenteb3177b0d8de10f316ac595dff3b8165cf828796 (diff)
downloadgovuk-mini-environment-admin-97f6d7e326a1fd7ddcbe7cf32dc0e4c0a508913d.tar
govuk-mini-environment-admin-97f6d7e326a1fd7ddcbe7cf32dc0e4c0a508913d.tar.gz
Add terraform backend and initial guix configuration
Diffstat (limited to 'terraform/aws/mini_environment')
-rw-r--r--terraform/aws/mini_environment/govuk.service.tpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/terraform/aws/mini_environment/govuk.service.tpl b/terraform/aws/mini_environment/govuk.service.tpl
new file mode 100644
index 0000000..52b4b56
--- /dev/null
+++ b/terraform/aws/mini_environment/govuk.service.tpl
@@ -0,0 +1,13 @@
+[Unit]
+Description=GOV.UK
+After=network.target
+
+[Service]
+Type=simple
+User=ubuntu
+WorkingDirectory=/home/ubuntu
+Environment="GUIX_DAEMON_SOCKET=guix://${guix_daemon_socket}"
+ExecStart=/var/guix/profiles/per-user/ubuntu/guix-profile/bin/govuk system start --rails-environment=production --app-domain=${app_domain} --web-domain=${web_domain} --use-high-ports=false --use-https=certbot --fallback
+
+[Install]
+WantedBy=multi-user.target