git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/files/usr/share/doc/forgejo
diff options
context:
space:
mode:
authormail_redacted_for_web 2026-01-18 10:15:33 +0100
committermail_redacted_for_web 2026-01-18 10:15:33 +0100
commit3c711e45f8a8c797dae238965631cd2302167161 (patch)
tree8834e266dec864c74cb92edd035164fc834f2bc5 /files/usr/share/doc/forgejo
parente4346e719e6d7bd4a37ff6ab737a8f232921433e (diff)
downloadforgejo-lirion-9a10b4687c6c7aea9fadec08145392c9908248e8.tar.bz2
Adding example service unitv14.0.1
Diffstat (limited to 'files/usr/share/doc/forgejo')
-rw-r--r--files/usr/share/doc/forgejo/app.ini.example1
-rw-r--r--files/usr/share/doc/forgejo/forgejo.service.example50
2 files changed, 51 insertions, 0 deletions
diff --git a/files/usr/share/doc/forgejo/app.ini.example b/files/usr/share/doc/forgejo/app.ini.example
index 77263f6..b5265e1 100644
--- a/files/usr/share/doc/forgejo/app.ini.example
+++ b/files/usr/share/doc/forgejo/app.ini.example
@@ -1,3 +1,4 @@
+; vim:syntax=dosini
; This file lists the default values used by Forgejo
;; Copy required sections to your own app.ini (default is custom/conf/app.ini)
;; and modify as needed.
diff --git a/files/usr/share/doc/forgejo/forgejo.service.example b/files/usr/share/doc/forgejo/forgejo.service.example
new file mode 100644
index 0000000..c8f2805
--- /dev/null
+++ b/files/usr/share/doc/forgejo/forgejo.service.example
@@ -0,0 +1,50 @@
+# vim:syntax=systemd
+[Unit]
+Description=Forgejo
+After=network.target
+After=mysqld.service
+After=postgresql.service
+After=memcached.service
+After=redis.service
+
+[Service]
+User=forgejo
+Group=forgejo
+Type=simple
+WorkingDirectory=~
+RuntimeDirectory=forgejo
+LogsDirectory=forgejo
+StateDirectory=forgejo
+ExecStart=/usr/bin/forgejo web -c /etc/forgejo/app.ini
+Restart=always
+RestartSec=2s
+ReadWritePaths=/etc/forgejo/app.ini
+AmbientCapabilities=
+CapabilityBoundingSet=
+LockPersonality=true
+#Required by commit search
+#MemoryDenyWriteExecute=true
+NoNewPrivileges=True
+#SecureBits=noroot-locked
+PrivateDevices=true
+PrivateTmp=true
+PrivateUsers=true
+ProtectClock=true
+ProtectControlGroups=true
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelLogs=true
+ProtectKernelModules=true
+ProtectKernelTunables=true
+ProtectProc=invisible
+ProtectSystem=strict
+RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
+RestrictNamespaces=true
+RestrictRealtime=true
+RestrictSUIDSGID=true
+SystemCallArchitectures=native
+SystemCallFilter=@system-service
+SystemCallErrorNumber=EPERM
+
+[Install]
+WantedBy=multi-user.target