Docs/README.md
2022-02-21 11:29:07 +01:00

1.5 KiB

Gitea

Användning

Generera SSH-nycklar

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

Installation

Config 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

HTTPS proxy 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$
# Använd git för att SSH-länkar till repositoryt ska presenteras rätt
RUN_USER = git

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 mallar