summaryrefslogtreecommitdiffstats
path: root/extra/es-public-proxy.service
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-08-25 21:17:00 -0700
committerBryan Newbold <bnewbold@archive.org>2020-08-25 21:17:00 -0700
commit87f149aaef138f2399d02688d61d0534b5650f8e (patch)
treebf4442a9e56d9dac8cf5cbbdbc7d3fe07b08777f /extra/es-public-proxy.service
parentc301c0fa0e6b409e1682a0dc75ae50b34e56457c (diff)
downloades-public-proxy-87f149aaef138f2399d02688d61d0534b5650f8e.tar.gz
es-public-proxy-87f149aaef138f2399d02688d61d0534b5650f8e.zip
include systemd unit file in debian package
Diffstat (limited to 'extra/es-public-proxy.service')
-rw-r--r--extra/es-public-proxy.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/es-public-proxy.service b/extra/es-public-proxy.service
new file mode 100644
index 0000000..256212f
--- /dev/null
+++ b/extra/es-public-proxy.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Public-facing Elasticsearch Proxy
+After=network.target
+
+[Service]
+Environment="RUST_LOG=es_public_proxy=warn"
+ExecStart=/usr/bin/es-public-proxy --config /etc/es-public-proxy.toml
+User=nobody
+Type=simple
+
+[Install]
+WantedBy=multi-user.target