« Gitlab » : différence entre les versions
De Banane Atomic
Aller à la navigationAller à la recherche
Ligne 16 : | Ligne 16 : | ||
== [https://wiki.archlinux.org/index.php/GitLab#Secret_strings Secret string] == | == [https://wiki.archlinux.org/index.php/GitLab#Secret_strings Secret string] == | ||
Fill the following files with a secret: | |||
<kode lang='bash'> | <kode lang='bash'> | ||
hexdump -v -n 64 -e '1/1 "%02x"' /dev/urandom | sudo dd of=/etc/webapps/gitlab/secret | hexdump -v -n 64 -e '1/1 "%02x"' /dev/urandom | sudo dd of=/etc/webapps/gitlab/secret | ||
Ligne 24 : | Ligne 25 : | ||
</kode> | </kode> | ||
Set secrets in the following configuration file: | |||
<filebox fn='/etc/webapps/gitlab/secrets.yml'> | <filebox fn='/etc/webapps/gitlab/secrets.yml'> | ||
production: | production: |
Version du 29 mai 2023 à 15:14
Links
Installation
- install and configure PostgreSQL
sudo pacman gitlab |
/etc/webapps/gitlab/gitlab.yml |
host: gitlab.domain.net port: 443 https: true |
Secret string
Fill the following files with a secret:
hexdump -v -n 64 -e '1/1 "%02x"' /dev/urandom | sudo dd of=/etc/webapps/gitlab/secret sudo chmod 640 /etc/webapps/gitlab/secret hexdump -v -n 64 -e '1/1 "%02x"' /dev/urandom | sudo dd of=/etc/webapps/gitlab-shell/secret sudo chmod 640 /etc/webapps/gitlab-shell/secret |
Set secrets in the following configuration file:
/etc/webapps/gitlab/secrets.yml |
production: secret_key_base: [secret] db_key_base: [secret] otp_key_base: [secret] openid_connect_signing_key: [secret] |
Redis
# Add user gitlab to group redis sudo gpasswd -a gitlab redis |