Files
confdroid_gitea/templates/gitea_service.erb
2026-02-05 15:43:47 +01:00

26 lines
879 B
Plaintext

### File created by Puppet ###
### manual changes will be lost ###
### reference https://github.com/go-gitea/gitea/blob/release/v1.25/contrib/systemd/gitea.service ###
###########################################################################################################
[Unit]
Description=Gitea (Git with a cup of tea)
After=network.target
Wants=<%= @ga_db_type %>.service
After=<%= @ga_db_type %>.service
[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
RestartSec=2s
Type=simple
User=<%= @ga_user %>
Group=<%= @ga_user %>
WorkingDirectory=<%= @ga_working_dir %>
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
Restart=always
Environment=USER=<%= @ga_user %> HOME=/home/<%= @ga_user %> GITEA_WORK_DIR=<%= @ga_working_dir %>
[Install]
WantedBy=multi-user.target