{%- 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 }} ExecStart={{ gitea.workingdir }}/gitea web Restart=always Environment=USER={{ gitea.user }} HOME={{ gitea.workingdir }} [Install] WantedBy=multi-user.target