feat: first commit
Some checks failed
Continuous Delivery / build_n_upload (push) Has been cancelled
Some checks failed
Continuous Delivery / build_n_upload (push) Has been cancelled
This commit is contained in:
33
files/gitea/app.ini
Normal file
33
files/gitea/app.ini
Normal file
@@ -0,0 +1,33 @@
|
||||
# Do not edit this file unless you are aware about what you are doing!
|
||||
# See official doc here: https://docs.gitea.com/next/administration/config-cheat-sheet
|
||||
|
||||
APP_NAME = Netoïk Git Server
|
||||
RUN_USER = gitea
|
||||
RUN_MODE = prod
|
||||
WORK_PATH = /var/lib/gitea
|
||||
|
||||
[server]
|
||||
DOMAIN = git.netoik.io
|
||||
ROOT_URL = https://git.netoik.io/
|
||||
HTTP_ADDR = 127.0.0.1
|
||||
HTTP_PORT = 3000
|
||||
SSH_DOMAIN = git.netoik.io
|
||||
SSH_PORT = 22222
|
||||
|
||||
[database]
|
||||
DB_TYPE = postgres
|
||||
HOST = /run/postgresql
|
||||
NAME = gitea
|
||||
USER = gitea
|
||||
|
||||
[security]
|
||||
INSTALL_LOCK = true
|
||||
SECRET_KEY = $SECRET_KEY
|
||||
INTERNAL_TOKEN = $INTERNAL_TOKEN
|
||||
|
||||
[service]
|
||||
DISABLE_REGISTRATION = true
|
||||
|
||||
[session]
|
||||
PROVIDER = redis
|
||||
PROVIDER_CONFIG = /run/redis/redis.sock
|
||||
17
files/systemd/actrunner@.service
Normal file
17
files/systemd/actrunner@.service
Normal file
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Gitea Actions runner #%i
|
||||
Documentation=https://gitea.com/gitea/act_runner
|
||||
After=network.target gitea.service
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/usr/bin/rpmdev-setuptree
|
||||
ExecStart=/usr/local/bin/act_runner daemon
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
WorkingDirectory=/opt/actrunners/actrunner%i
|
||||
TimeoutSec=0
|
||||
RestartSec=10
|
||||
Restart=always
|
||||
User=actrunner%i
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
15
files/systemd/gitea.service
Normal file
15
files/systemd/gitea.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Gitea (Git with a cup of tea)
|
||||
After=network.target postgresql.service
|
||||
|
||||
[Service]
|
||||
RestartSec=2s
|
||||
Type=simple
|
||||
User=gitea
|
||||
Group=gitea
|
||||
WorkingDirectory=/var/lib/gitea/
|
||||
ExecStart=/usr/local/bin/gitea web --config /etc/gitea/app.ini
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user