Skip to content

Instantly share code, notes, and snippets.

@edrex
Last active March 4, 2016 21:27
Show Gist options
  • Save edrex/857002615db419e0f058 to your computer and use it in GitHub Desktop.
Save edrex/857002615db419e0f058 to your computer and use it in GitHub Desktop.
alexandria% cat /etc/systemd/system/caddy.service
[Unit]
Description=Caddy Webserver
After=network.target
[Service]
LimitNOFILE=4096
ExecStart=/home/eric/go/bin/caddy -agree -email=eric@pdxhub.org
WorkingDirectory=/home/eric/public_html
User=eric
Group=eric
alexandria.pdxhub.org {
root PDXHubWiki
fastcgi /ikiwiki.cgi /run/fcgiwrap-eric.sock
browse /share
redir /irc http://alexandria.pdxhub.org:64080{uri} 301
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment