diff options
-rw-r--r-- | etc/lighttpd/ostree-repo-httpd.conf | 8 | ||||
-rw-r--r-- | units/lighttpd-ostree-repo.service | 10 |
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 |