diff --git a/Gitea.md b/Gitea.md new file mode 100644 index 0000000..93ee8ae --- /dev/null +++ b/Gitea.md @@ -0,0 +1,72 @@ +# 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) \ No newline at end of file diff --git a/Node.JS.md b/Node.JS.md new file mode 100644 index 0000000..ece24ad --- /dev/null +++ b/Node.JS.md @@ -0,0 +1,10 @@ +# Node.JS + +### [Installera NVM](https://github.com/nvm-sh/nvm "Node Version Manager") + +
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash && source ~/.bashrc
+ +### Installera Node.JS version + +
nvm install 16.13 && nvm use 16.13
+ diff --git a/README.md b/README.md index 93ee8ae..df72bc4 100644 --- a/README.md +++ b/README.md @@ -1,72 +1,7 @@ -# Gitea +# Developer Documentation -## Användning +## [Gitea](Gitea.md) -### Generera SSH-nycklar +## [Git cheat sheet](Git%20cheat%20sheet.md) -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) \ No newline at end of file +## [Node.JS](Node.JS.md)