An Ansible Playbook for deploying your own self-hosted Gitea instance
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

před 5 roky
1234567891011121314151617181920212223242526272829303132
  1. [Unit]
  2. Description=Gitea (Git with a cup of tea)
  3. After=syslog.target
  4. After=network.target
  5. #After=mysqld.service
  6. After=postgresql.service
  7. #After=memcached.service
  8. #After=redis.service
  9. [Service]
  10. # Modify these two values and uncomment them if you have
  11. # repos with lots of files and get an HTTP error 500 because
  12. # of that
  13. ###
  14. #LimitMEMLOCK=infinity
  15. #LimitNOFILE=65535
  16. RestartSec=2s
  17. Type=simple
  18. User=git
  19. Group=git
  20. WorkingDirectory=/var/lib/gitea/
  21. ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini
  22. Restart=always
  23. Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea
  24. # If you want to bind Gitea to a port below 1024 uncomment
  25. # the two values below
  26. ###
  27. #CapabilityBoundingSet=CAP_NET_BIND_SERVICE
  28. #AmbientCapabilities=CAP_NET_BIND_SERVICE
  29. [Install]
  30. WantedBy=multi-user.target