Outils pour utilisateurs

Outils du site


commun:gitea

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
commun:gitea [2019/07/20 15:05] – francoiscommun:gitea [2020/11/14 16:32] (Version actuelle) – [Fichiers de configuration] francois
Ligne 1: Ligne 1:
 ====== Gitea ====== ====== Gitea ======
 +
 +===== Installation de la version pré-compilée =====
 +
 +  wget https://dl.gitea.io/gitea/<1.12.5>/gitea-<1.12.5>-linux-amd64
 +
 +Remplacer la version par celle à mettre.
 +A copier dans le répertoire ''/usr/local/bin''
  
 ===== Compilation ===== ===== Compilation =====
Ligne 25: Ligne 32:
 </code> </code>
  
-===== Fichier systemd ===== +===== Fichiers de configuration =====
- +
-<file ini /etc/systemd/system/gitea.service> +
-[Unit] +
-Description=Gitea (Git with a cup of tea) +
-After=syslog.target +
-After=network.target +
-#After=mysqld.service +
-#After=postgresql.service +
-#After=memcached.service +
-#After=redis.service +
- +
-[Service] +
-# Modify these two values and uncomment them if you have +
-# repos with lots of files and get an HTTP error 500 because +
-# of that +
-### +
-#LimitMEMLOCK=infinity +
-#LimitNOFILE=65535 +
-RestartSec=2s +
-Type=simple +
-User=git +
-Group=git +
-WorkingDirectory=/var/lib/gitea/ +
-ExecStart=/usr/local/bin/gitea web -c /etc/gitea/app.ini +
-Restart=always +
-Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea +
-# If you want to bind Gitea to a port below 1024 uncomment +
-# the two values below +
-### +
-#CapabilityBoundingSet=CAP_NET_BIND_SERVICE +
-#AmbientCapabilities=CAP_NET_BIND_SERVICE +
- +
-[Install] +
-WantedBy=multi-user.target +
-</file> +
- +
-===== Fichier de configuration ===== +
- +
-<file ini /etc/gitea/app.ini> +
-APP_NAME = Les repos de Foué +
-RUN_USER = git +
-RUN_MODE = prod +
- +
-[security] +
-INTERNAL_TOKEN     = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1Mzk1MzI4NTN9.UeGoX5ejpnJ8_IZYqZC11szkdx80M1x5lKUC0nN7B78 +
-INSTALL_LOCK       = true +
-SECRET_KEY         = eDlTfMucDEDdeQSp0NHRWFuKMqRN3sklfbQ3sQ20G6OzdJMmRZq0f4UMLe49WM5N +
-IMPORT_LOCAL_PATHS = true +
- +
-[database] +
-DB_TYPE  = mysql +
-HOST     = 127.0.0.1:3306 +
-NAME     = gitea +
-USER     = gitea +
-PASSWD   = aZYPGivGBrgYs3Ux +
-SSL_MODE = disable +
-PATH     = data/gitea.db +
- +
-[repository] +
-ROOT = /media/stockage/repositories/gitea +
- +
-[server] +
-# SSH_DOMAIN       = localhost +
-#DOMAIN           = localhost +
-DOMAIN           = git.beafrancois.fr +
-PROTOCOL         = https +
-HTTP_PORT        = 3000 +
-ROOT_URL         = https://git.beafrancois.fr/ +
-CERT_FILE        = /etc/gitea/cert.pem +
-KEY_FILE         = /etc/gitea/key.pem +
-START_SSH_SERVER = true +
-SSH_PORT         = 2222 +
-LFS_START_SERVER = false +
-LFS_CONTENT_PATH = /var/lib/gitea/data/lfs +
-LFS_JWT_SECRET   = -FAtrZnh78gPT4G1xEJ1nbi6Xw4XKmxZsae_8iBiZBk +
-OFFLINE_MODE     = false +
- +
-[mailer] +
-ENABLED = true +
-HOST    = mail.infomaniak.ch:587 +
-FROM    = git@beafrancois.fr +
-USER    = beafrancois@beafrancois.fr +
-PASSWD  = eiQuae7g +
- +
-[service] +
-REGISTER_EMAIL_CONFIRM            = true +
-ENABLE_NOTIFY_MAIL                = true +
-DISABLE_REGISTRATION              = false +
-ALLOW_ONLY_EXTERNAL_REGISTRATION  = false +
-ENABLE_CAPTCHA                    = true +
-REQUIRE_SIGNIN_VIEW               = true +
-DEFAULT_KEEP_EMAIL_PRIVATE        = true +
-DEFAULT_ALLOW_CREATE_ORGANIZATION = true +
-DEFAULT_ENABLE_TIMETRACKING       = true +
-NO_REPLY_ADDRESS                  = noreply.beafrancois.fr +
- +
-[picture] +
-DISABLE_GRAVATAR        = false +
-ENABLE_FEDERATED_AVATAR = true +
- +
-[openid] +
-ENABLE_OPENID_SIGNIN = true +
-ENABLE_OPENID_SIGNUP = true +
- +
-[session] +
-PROVIDER = file+
  
-[log] +{{ :commun:maison:reseau:app.ini |/etc/gitea/app.ini}}
-MODE      = file +
-LEVEL     = Info +
-ROOT_PATH = /var/lib/gitea/log+
  
-[oauth2] +{{ :commun:maison:reseau:gitea.service.txt | gitea.service}}
-JWT_SECRET = zn8M96-I7fCSC2txn91oYEUvwmc0q-YpafH2elHWj_I +
-</file>+
commun/gitea.1563635141.txt.gz · Dernière modification : (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki