You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
742 B
INI

[Unit]
Description=Gitea on {{ domain }}
After=syslog.target
After=network.target
Requires=mariadb.service
[Service]
# Modify these two values and uncomment them if you have
# repos with lots of files and get an HTTP error 500 because
# of that
###
#LimitMEMLOCK=infinity
#LimitNOFILE=65535
RestartSec=2s
Type=simple
User={{ gitea_system_user }}
Group={{ gitea_system_user }}
WorkingDirectory={{ gitea_installation_directory }}
ExecStart="{{ gitea_binary_path }}" web -c /etc/gitea/app.ini "{{ gitea_custom_directory }}/app.ini"
Restart=always
Environment="USER='{{ gitea_system_user }}'"
Environment="HOME='{{ gitea_user_directory }}'"
Environment="GITEA_WORK_DIR='{{ gitea_installation_directory }}'"
[Install]
WantedBy=multi-user.target