summarylogtreecommitdiffstats
path: root/concrnt-api.service
blob: 3e1f71c4e10271ae88f4dd3fa0ac20bb46b3544c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[Unit]
Description=Concrnt API daemon
Wants=concrnt-gateway.service
After=concrnt-gateway.service

[Service]
Type=simple
Restart=on-failure

User=concrnt
Group=concrnt

SyslogIdentifier=concrnt-api

# Port config
Environment="CC_API_PORT=28281"

# Proxy config (http, https or socks5)
#Environment="http_proxy=http://proxy-server:3128"
#Environment="https_proxy=http://proxy-server:3128"

ExecStart=/usr/bin/ccapi

RestrictSUIDSGID=true
RestrictNamespaces=true

[Install]
WantedBy=multi-user.target