From 1c15fe67c72b4591feaceeffec0951e34a6c2e46 Mon Sep 17 00:00:00 2001 From: clsr Date: Fri, 18 Aug 2017 14:08:04 +0200 Subject: Initial commit --- cn-http.service | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cn-http.service (limited to 'cn-http.service') diff --git a/cn-http.service b/cn-http.service new file mode 100644 index 0000000..debeeb5 --- /dev/null +++ b/cn-http.service @@ -0,0 +1,24 @@ +[Unit] +Description=CNP-HTTP and CNM-HTML translating reverse proxy +After=network.target + +[Service] +Type=simple +ExecStart=/usr/local/bin/cn-http -listen localhost:9000 -cnp-host contnet.org +PrivateTmp=yes +ProtectSystem=strict +ProtectHome=yes +InaccessibleDirectories=/home +ReadOnlyDirectories=/ +CapabilityBoundingSet= +LimitFSIZE=0 +DeviceAllow=/dev/null rw +MemoryDenyWriteExecute=yes +User=nobody +Group=nogroup +WorkingDirectory=/var/contnet/cn-http +Restart=always +RestartSec=10s + +[Install] +WantedBy=multi-user.target -- cgit