diff options
author | clsr <clsr@clsr.net> | 2017-08-18 14:08:04 +0200 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2017-08-18 14:08:04 +0200 |
commit | 1c15fe67c72b4591feaceeffec0951e34a6c2e46 (patch) | |
tree | c22393533916300e73799b9fe630c392a48a1c6b /cn-http.service | |
download | cn-http-1c15fe67c72b4591feaceeffec0951e34a6c2e46.tar.gz cn-http-1c15fe67c72b4591feaceeffec0951e34a6c2e46.zip |
Initial commitv0.1.0
Diffstat (limited to 'cn-http.service')
-rw-r--r-- | cn-http.service | 24 |
1 files changed, 24 insertions, 0 deletions
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 |