initial import
This commit is contained in:
parent
3ed58b0021
commit
4b70c0023c
48 changed files with 1540 additions and 0 deletions
31
etc/systemd/system/gitea.service
Normal file
31
etc/systemd/system/gitea.service
Normal 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
|
||||
3
etc/systemd/system/nginx.service.d/override.conf
Normal file
3
etc/systemd/system/nginx.service.d/override.conf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876365
|
||||
[Service]
|
||||
ExecStartPost=/usr/bin/sleep 0.1
|
||||
10
etc/systemd/system/teabak.service
Normal file
10
etc/systemd/system/teabak.service
Normal 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
|
||||
10
etc/systemd/system/teabak.timer
Normal file
10
etc/systemd/system/teabak.timer
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue