summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-04-22 17:18:55 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2015-04-22 17:18:55 +0000
commit9536ba98090c9facbd0fe0e93d868ca054eafecb (patch)
treee24a00be9c6134ba647a540b60c65e86f13e1a88
parentdb1e0819a425f7839d646fe4e1c37724898b25b9 (diff)
downloadtrove-setup-baserock/adamcoldrick/ostree.tar.gz
Add a simple web server to serve the OSTree repobaserock/adamcoldrick/ostree
Change-Id: I23c5ebebd90466cd88fbbb436dc19da991745498
-rw-r--r--etc/lighttpd/ostree-repo-httpd.conf8
-rw-r--r--units/lighttpd-ostree-repo.service10
2 files changed, 18 insertions, 0 deletions
diff --git a/etc/lighttpd/ostree-repo-httpd.conf b/etc/lighttpd/ostree-repo-httpd.conf
new file mode 100644
index 0000000..b44bea8
--- /dev/null
+++ b/etc/lighttpd/ostree-repo-httpd.conf
@@ -0,0 +1,8 @@
+server.document-root = "/home/cache/artifacts/repo"
+
+server.port = 12324
+
+server.username = "cache"
+server.groupname = "cache"
+
+server.dir-listing = "enable"
diff --git a/units/lighttpd-ostree-repo.service b/units/lighttpd-ostree-repo.service
new file mode 100644
index 0000000..8e2012b
--- /dev/null
+++ b/units/lighttpd-ostree-repo.service
@@ -0,0 +1,10 @@
+[Install]
+WantedBy=multi-user.target
+
+[Unit]
+Description=Lighttpd Web Server
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/lighttpd -f /etc/lighttpd/ostree-repo-httpd.conf -D
+Restart=always