Skip to content

Instantly share code, notes, and snippets.

@riipandi
Last active February 12, 2018 05:25
Show Gist options
  • Save riipandi/c686a968b312851e82287f813c31a334 to your computer and use it in GitHub Desktop.
Save riipandi/c686a968b312851e82287f813c31a334 to your computer and use it in GitHub Desktop.
Build Your Private Git Server
[Unit]
Description=Gitea
After=syslog.target
After=network.target
After=mysql.service postgresql.service memcached.service redis.service
[Service]
Type=simple
User=git
Group=www-data
Restart=always
WorkingDirectory=/home/git
ExecStart=/home/git/gitea web
Environment=USER=git HOME=/home/git
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment