From 9536ba98090c9facbd0fe0e93d868ca054eafecb Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Wed, 22 Apr 2015 17:18:55 +0000 Subject: Add a simple web server to serve the OSTree repo Change-Id: I23c5ebebd90466cd88fbbb436dc19da991745498 --- etc/lighttpd/ostree-repo-httpd.conf | 8 ++++++++ units/lighttpd-ostree-repo.service | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 etc/lighttpd/ostree-repo-httpd.conf create mode 100644 units/lighttpd-ostree-repo.service 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 -- cgit v1.2.1