commit aef3c41e814b184e58025b52062b352fbec002dc Author: Johan Date: Thu Feb 17 19:53:31 2022 +0100 Add README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..dae98b8 --- /dev/null +++ b/README.md @@ -0,0 +1,59 @@ +# 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 \ No newline at end of file