initial import

This commit is contained in:
tengel 2024-03-17 12:53:54 -05:00
parent 3ed58b0021
commit 4b70c0023c
48 changed files with 1540 additions and 0 deletions

View file

@ -0,0 +1,2 @@
[Journal]
MaxRetentionSec=1week

View file

@ -0,0 +1,31 @@
[Unit]
Description=Gitea
After=syslog.target
After=network.target
[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=git
Group=git
WorkingDirectory=/var/xyzzy/gitea/
ExecStart=/var/xyzzy/bin/gitea web --config /var/xyzzy/etc/gitea/app.ini
Restart=always
Environment=USER=git HOME=/var/xyzzy/git GITEA_WORK_DIR=/var/xyzzy/gitea
Environment=PATH=/var/xyzzy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# If you want to bind Gitea to a port below 1024, uncomment
# the two values below, or use socket activation to pass Gitea its ports as above
###
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
#AmbientCapabilities=CAP_NET_BIND_SERVICE
###
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,3 @@
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876365
[Service]
ExecStartPost=/usr/bin/sleep 0.1

View file

@ -0,0 +1,10 @@
[Unit]
Description=Gitea Backup
Wants=teabak.timer
[Service]
Type=oneshot
ExecStart=/var/xyzzy/bin/teabak.sh
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,10 @@
[Unit]
Description=Gitea Backup Timer
Requires=teabak.service
[Timer]
Unit=teabak.service
OnCalendar=*-*-* 00,08,16:00:00
[Install]
WantedBy=timers.target