commun:gitea
Ceci est une ancienne révision du document !
Table des matières
Gitea
Compilation
go get -d -u code.gitea.io/gitea cd go/src/code.gitea.io/ cd gitea/ git tag -l git checkout v1.5.2 TAGS="bindata" make generate build
Installation
adduser \ --system \ --shell /bin/bash \ --gecos 'Git Version Control' \ --group \ --disabled-password \ --home /home/git \ git
Fichier systemd
- /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
Fichier de configuration
- /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] MODE = file LEVEL = Info ROOT_PATH = /var/lib/gitea/log [oauth2] JWT_SECRET = zn8M96-I7fCSC2txn91oYEUvwmc0q-YpafH2elHWj_I
commun/gitea.1563635141.txt.gz · Dernière modification : (modification externe)
