# 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\"" ### Uppdatera Gitea Ladda ned den senaste versionen från https://dl.gitea.io/gitea/ till installationskatalogen och döp om den till gitea.exe Starta sedan om tjänsten. net stop gitea && get start gitea https://docs.gitea.io/en-us/upgrade-from-gitea/ ### Avinstallera Windows service sc.exe delete gitea ### Redigera mallar * https://github.com/go-gitea/gitea/tree/main/templates (mallar) * https://gitea.com/gitea/awesome-gitea#themes (teman) * https://yourbasic.org/golang/format-parse-string-time-date-example/ (datumformat) * https://docs.gitea.io/en-us/cmd-embedded/ (extrahera mallar och filer)