2022-02-17 19:53:31 +01:00
2022-02-17 19:53:31 +01:00

Gitea

Usage

Generera SSH-nycklar

ssh-keygen -t RSA -b 4096 -C "user@domain.se"

Installation

Confit cheat sheet

https://docs.gitea.io/en-us/config-cheat-sheet/#server-server

Aktivera inbyggd SSH-server

[server]
START_SSH_SERVER = true
SSH_LISTEN_PORT = %(SSH_PORT)s

Redirect av HTTPS via Apache

[server]
ROOT_URL         = https://git.myspace.nu/

Sätt repositories default till private

[repository]
DEFAULT_PRIVATE = private

Deaktivera signup & openid

[service]
DISABLE_REGISTRATION              = true

[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false

Kör som Windows service

[server]
# echo %COMPUTERNAME% => USER-PC => RUN_USER = USER-PC$
RUN_USER = COMPUTERNAME$

sc.exe create gitea start= auto binPath= ""E:\Gitea\gitea.exe" web --config "E:\Gitea\custom\conf\app.ini""

Avinstallera Windows service

sc.exe delete gitea

Redigera templates

https://github.com/go-gitea/gitea/tree/main/templates

Description
No description provided
Readme 216 KiB
Languages
Shell 87.8%
Batchfile 10.7%
JavaScript 1.5%