paulbsd-salt/states/gitea/templates/gitea.service.j2

19 lines
467 B
Plaintext
Raw Normal View History

2021-12-29 16:56:39 +01:00
{%- from "gitea/map.jinja" import gitea with context %}
[Unit]
Description=Gitea ({{ gitea.config.global.app_name }})
After=syslog.target
After=network.target
After=postgresql.service
[Service]
Type=simple
User={{ gitea.user }}
Group={{ gitea.user }}
WorkingDirectory={{ gitea.workingdir }}
2022-01-02 18:13:17 +01:00
ExecStart={{ gitea.binfile }} -w {{ gitea.workingdir }} web
2021-12-29 16:56:39 +01:00
Restart=always
Environment=USER={{ gitea.user }} HOME={{ gitea.workingdir }}
[Install]
2023-03-11 10:08:26 +01:00
WantedBy=multi-user.target