{%- from "forgejo/map.jinja" import forgejo with context %} [Unit] Description=Forgejo ({{ forgejo.config.global.app_name }}) After=syslog.target After=network.target After=postgresql.service [Service] Type=simple User={{ forgejo.user }} Group={{ forgejo.user }} WorkingDirectory={{ forgejo.workingdir }} ExecStart={{ forgejo.binfile }} -w {{ forgejo.workingdir }} web Restart=always Environment=USER={{ forgejo.user }} HOME={{ forgejo.workingdir }} [Install] WantedBy=multi-user.target