Skip to content

Instantly share code, notes, and snippets.

@dorentus
Last active August 29, 2015 13:59
Show Gist options
  • Save dorentus/10706566 to your computer and use it in GitHub Desktop.
Save dorentus/10706566 to your computer and use it in GitHub Desktop.
/etc/systemd/system/shrpx.service
[Unit]
Description=SPDY proxy
After=network.target
[Service]
Type=forking
PIDFile=/run/spdylay/shrpx.pid
EnvironmentFile=/etc/default/shrpx
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /run/spdylay
ExecStartPre=/bin/chown nobody:nogroup /run/spdylay
ExecStart=/usr/local/bin/shrpx --add-x-forwarded-for -n1 -D --syslog -s -f ${LISTEN} -b ${BACKEND} --pid-file=/run/spdylay/shrpx.pid ${KEY_FILE} ${CERT_FILE}
Restart=on-abort
User=nobody
Group=nogroup
UMask=0027
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment