Added gitea CT
This commit is contained in:
86
CT-Files/gitea/Configs/app.ini
Normal file
86
CT-Files/gitea/Configs/app.ini
Normal file
@@ -0,0 +1,86 @@
|
||||
APP_NAME = InstName
|
||||
RUN_USER = git
|
||||
RUN_MODE = prod
|
||||
|
||||
[security]
|
||||
INTERNAL_TOKEN = IntToken
|
||||
INSTALL_LOCK = true
|
||||
SECRET_KEY = SecKey
|
||||
|
||||
[database]
|
||||
DB_TYPE = mysql
|
||||
HOST = DBServer
|
||||
NAME = DBName
|
||||
USER = DBUser
|
||||
PASSWD = DBPass
|
||||
SSL_MODE = disable
|
||||
PATH = data/gitea.db
|
||||
|
||||
[repository]
|
||||
ROOT = /gitea-data/gitea-repositories
|
||||
|
||||
[server]
|
||||
SSH_DOMAIN = DOMAINname
|
||||
DOMAIN = localhost
|
||||
HTTP_PORT = 3000
|
||||
ROOT_URL = DomainProto
|
||||
DISABLE_SSH = FALSE
|
||||
SSH_PORT = 22
|
||||
LFS_START_SERVER = true
|
||||
APP_DATA_PATH = /gitea-data
|
||||
LFS_JWT_SECRET = LFSSecret
|
||||
OFFLINE_MODE = false
|
||||
|
||||
[mailer]
|
||||
ENABLED = false
|
||||
|
||||
[service]
|
||||
REGISTER_EMAIL_CONFIRM = false
|
||||
ENABLE_NOTIFY_MAIL = false
|
||||
DISABLE_REGISTRATION = true
|
||||
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
|
||||
ENABLE_CAPTCHA = false
|
||||
REQUIRE_SIGNIN_VIEW = false
|
||||
DEFAULT_KEEP_EMAIL_PRIVATE = false
|
||||
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
|
||||
DEFAULT_ENABLE_TIMETRACKING = true
|
||||
NO_REPLY_ADDRESS = noreply.localhost
|
||||
|
||||
[picture]
|
||||
DISABLE_GRAVATAR = false
|
||||
ENABLE_FEDERATED_AVATAR = true
|
||||
|
||||
[openid]
|
||||
ENABLE_OPENID_SIGNIN = false
|
||||
ENABLE_OPENID_SIGNUP = false
|
||||
|
||||
[session]
|
||||
PROVIDER = file
|
||||
|
||||
[log]
|
||||
MODE = console
|
||||
LEVEL = Info
|
||||
|
||||
|
||||
[i18n]
|
||||
LANGS = en-US
|
||||
NAMES = English
|
||||
|
||||
[repository.upload]
|
||||
; Whether repository file uploads are enabled. Defaults to `true`
|
||||
ENABLED = true
|
||||
; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gitea restart)
|
||||
TEMP_PATH = data/tmp/uploads
|
||||
; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type
|
||||
; ALLOWED_TYPES =
|
||||
; Max size of each file in megabytes. Defaults to 3MB
|
||||
FILE_MAX_SIZE = 40
|
||||
; Max number of files per upload. Defaults to 5
|
||||
MAX_FILES = 5
|
||||
|
||||
[oauth2]
|
||||
JWT_SECRET = JWTSectet
|
||||
|
||||
[ui]
|
||||
THEMES = gitea,arc-green,arc-blue
|
||||
DEFAULT_THEME = arc-blue
|
||||
10
CT-Files/gitea/Configs/auto-update.ini
Normal file
10
CT-Files/gitea/Configs/auto-update.ini
Normal file
@@ -0,0 +1,10 @@
|
||||
[Gitea]
|
||||
site=http://localhost:3000/api/v1/version
|
||||
apiUrl=https://api.github.com/repos/go-gitea/gitea/releases/latest
|
||||
system=linux-amd64
|
||||
file=/usr/local/bin/gitea
|
||||
tmpDir=/tmp/
|
||||
buildFromSource=
|
||||
sourceDir=
|
||||
logFile=/var/log/gitupdate.log
|
||||
|
||||
14
CT-Files/gitea/Configs/gitea.service
Normal file
14
CT-Files/gitea/Configs/gitea.service
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
supervisor=supervise-daemon
|
||||
name=gitea
|
||||
command="/usr/local/bin/gitea"
|
||||
command_user="git"
|
||||
command_args="web --config '${GITEA_CONF:-/etc/gitea/app.ini}'"
|
||||
supervise_daemon_args="--env GITEA_WORK_DIR='${GITEA_WORK_DIR:-/var/lib/gitea}' --chdir '${GITEA_WORK_DIR:-/var/lib/gitea}' --stdout '${GITEA_LOG_FILE:-/var/log/gitea/gitea.log}' --stderr '${GITEA_LOG_FILE:-/var/log/gitea/gitea.log}'"
|
||||
pidfile="/run/gitea.pid"
|
||||
|
||||
depend() {
|
||||
use logger dns
|
||||
need net
|
||||
}
|
||||
Reference in New Issue
Block a user