tech:notes_gogs_forge_git_serveur_github_like
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:notes_gogs_forge_git_serveur_github_like [2025/11/13 20:17] – Jean-Baptiste | tech:notes_gogs_forge_git_serveur_github_like [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes GOGS forge git serveur github like | ||
| + | |||
| + | |||
| + | Voir aussi : | ||
| + | * https:// | ||
| + | * Gitlab | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | * [[https:// | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | wget https:// | ||
| + | unzip gogs_v0.9.141_linux_amd64.zip | ||
| + | |||
| + | cd gogs | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Gogs ne fonctionne pas directement avec git-shell | ||
| + | |||
| + | ~~~ | ||
| + | fatal: Could not read from remote repository. | ||
| + | Please make sure you have the correct access rights | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | # Delete | ||
| + | passwd -d git | ||
| + | |||
| + | # Lock | ||
| + | passwd -l git | ||
| + | |||
| + | usermod -s /bin/bash git | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | `/ | ||
| + | ~~~ | ||
| + | AllowUsers plop git | ||
| + | |||
| + | Match User git | ||
| + | PasswordAuthentication no | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | service ssh restart | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | apt-get install supervisor | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | [program: | ||
| + | directory=/ | ||
| + | command=/ | ||
| + | autostart=true | ||
| + | autorestart=true | ||
| + | startsecs=10 | ||
| + | stdout_logfile=/ | ||
| + | stdout_logfile_maxbytes=1MB | ||
| + | stdout_logfile_backups=10 | ||
| + | stdout_capture_maxbytes=1MB | ||
| + | stderr_logfile=/ | ||
| + | stderr_logfile_maxbytes=1MB | ||
| + | stderr_logfile_backups=10 | ||
| + | stderr_capture_maxbytes=1MB | ||
| + | user = git | ||
| + | environment = HOME="/ | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | Pour faire fonctionner SMTP et avoir les notifications par mails : | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | [mailer] | ||
| + | SKIP_VERIFY = true | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Sur poste client | ||
| + | |||
| + | Il est possible d' | ||
| + | |||
| + | Exemple de conf SSH pour utiliser un proxy d' | ||
| + | |||
| + | `~/ | ||
| + | ~~~ | ||
| + | Host git.acme.fr | ||
| + | User git | ||
| + | Hostname git.acme.fr | ||
| + | Port 443 | ||
| + | ProxyCommand / | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Conf complète app.ini | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | APP_NAME = Gogs: Go Git Service | ||
| + | RUN_USER = git | ||
| + | RUN_MODE = prod | ||
| + | |||
| + | [database] | ||
| + | DB_TYPE | ||
| + | HOST = 127.0.0.1: | ||
| + | NAME = gogs | ||
| + | USER = root | ||
| + | PASSWD | ||
| + | SSL_MODE = disable | ||
| + | PATH = data/ | ||
| + | |||
| + | [repository] | ||
| + | ROOT = / | ||
| + | |||
| + | [server] | ||
| + | DOMAIN | ||
| + | HTTP_PORT | ||
| + | ROOT_URL | ||
| + | DISABLE_SSH | ||
| + | SSH_PORT | ||
| + | OFFLINE_MODE = true | ||
| + | |||
| + | [mailer] | ||
| + | ENABLED = true | ||
| + | HOST = localhost: | ||
| + | FROM = GOGS < | ||
| + | USER = | ||
| + | PASSWD | ||
| + | SKIP_VERIFY = true | ||
| + | |||
| + | [service] | ||
| + | REGISTER_EMAIL_CONFIRM = false | ||
| + | ENABLE_NOTIFY_MAIL | ||
| + | DISABLE_REGISTRATION | ||
| + | ENABLE_CAPTCHA | ||
| + | REQUIRE_SIGNIN_VIEW | ||
| + | |||
| + | [picture] | ||
| + | DISABLE_GRAVATAR | ||
| + | ENABLE_FEDERATED_AVATAR = false | ||
| + | |||
| + | [session] | ||
| + | PROVIDER = file | ||
| + | |||
| + | [log] | ||
| + | MODE = file | ||
| + | LEVEL = Info | ||
| + | ROOT_PATH = / | ||
| + | |||
| + | [security] | ||
| + | INSTALL_LOCK = true | ||
| + | SECRET_KEY | ||
| + | ~~~ | ||
| + | |||
