server-configs/lab.iweb.city/lab.iweb.city.boringproxy.service
2024-05-25 08:09:52 -05:00

28 lines
701 B
Desktop File

[Unit]
Description=Boringproxy
After=syslog.target
After=network.target
StartLimitIntervalSec=0
[Service]
# Uncomment the next line if you have repos with lots of files and get a HTTP 500 error because of that
# LimitNOFILE=524288:524288
RemainAfterExit=yes
RestartSec=1
Type=notify
User=opc
Group=opc
#The mount point we added to the container
WorkingDirectory=/usr/local/bin
#Create directory in /run
RuntimeDirectory=bin
ExecStart=/usr/local/bin/boringproxy server -admin-domain SUBDOMAIN.DOMAIN.TLD
Restart=always
WatchdogSec=30s
#Capabilities to bind to low-numbered ports
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target