GitLab: verschil tussen versies

Uit WaaaghPedia
Geen bewerkingssamenvatting
 
(13 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
{{Alertbox/Danger
== Voorbereiding ==
|info=Pagina wordt NIET bijgehouden!
===Machine===
}}
*2 Cores
*4GB ram
*50GB hdd
 
===Software===
[[CentOS_7/Installeren|Installeer CentOS]] en [[CentOS_7/FineTune|Finetune CentOS]]


== Installatie ==
== Installatie ==
'''Voorbereiding'''
https://about.gitlab.com/install/#centos-7
[[CentOS_7/Installeren|Installeer CentOS]] en [[CentOS_7/FineTune|Finetune CentOS]]
 
<pre>
== HTTPS ==
yum install -y curl policycoreutils-python openssh-server
https://docs.gitlab.com/omnibus/settings/nginx.html#manually-configuring-https
systemctl enable sshd
 
systemctl start sshd
== SMTP ==
firewall-cmd --permanent --add-service=http
https://docs.gitlab.com/omnibus/settings/smtp.html
systemctl reload firewalld
yum install postfix
systemctl enable postfix
systemctl start postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ee
</pre>
Open je browser en ga naar http://gitlab.example.com en maak een root wachtwoord aan.
Veel Plezier
==Upgrades==
===Tijdzone===
https://docs.gitlab.com/ee/workflow/timezone.html


===SMTP===
<pre>gitlab_rails['smtp_enable'] = true
<pre>gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.server"
gitlab_rails['smtp_address'] = "smtp.server"
Regel 35: Regel 27:
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'</pre>
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'</pre>


https://docs.gitlab.com/omnibus/settings/smtp.html#examples
== LDAP ==
===SSL===
https://docs.gitlab.com/ee/administration/auth/ldap.html
{{Alertbox/Info
|info=Lets Encrypt versie: https://docs.gitlab.com/omnibus/settings/ssl.html#lets-encrypt-integration
}}
<pre>nano /etc/gitlab/gitlab.rb</pre>
<pre>external_url "https://gitlab.example.com"</pre>
<pre>mkdir -p /etc/gitlab/ssl
chmod 700 /etc/gitlab/ssl
cd /etc/gitlab/ssl
touch gitlab.example.com.key gitlab.example.com.crt</pre>
<pre>nano /etc/gitlab/ssl/*.key</pre>
<pre>nano /etc/gitlab/ssl/*.crt</pre>
<pre>gitlab-ctl reconfigure</pre>


{{Alertbox/Info
Open je browser en ga naar http://gitlab.example.com en maak een root wachtwoord aan.
|info=Meest actuele versie: https://docs.gitlab.com/omnibus/settings/ssl.html#lets-encrypt-integration
Veel Plezier
}}
 
===Firewall===
<pre>
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
systemctl reload firewalld
</pre>
 
===Importeren===
====Bitbucket====
https://docs.gitlab.com/ee/integration/bitbucket.html


==Commands==
==Commands==
Regel 70: Regel 38:
gitlab-ctl reconfigure
gitlab-ctl reconfigure
</pre>
</pre>
==Bron==
https://about.gitlab.com/installation/#centos-7


[[Category:Selfhosted]]
[[Category:Selfhosted]]
[[Category:CentOS]]

Versie van 9 sep 2019 15:07

Voorbereiding

Machine

  • 2 Cores
  • 4GB ram
  • 50GB hdd

Software

Installeer CentOS en Finetune CentOS

Installatie

https://about.gitlab.com/install/#centos-7

HTTPS

https://docs.gitlab.com/omnibus/settings/nginx.html#manually-configuring-https

SMTP

https://docs.gitlab.com/omnibus/settings/smtp.html

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.server"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "smtp user"
gitlab_rails['smtp_password'] = "smtp password"
gitlab_rails['smtp_domain'] = "example.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_openssl_verify_mode'] = 'peer'

LDAP

https://docs.gitlab.com/ee/administration/auth/ldap.html

Open je browser en ga naar http://gitlab.example.com en maak een root wachtwoord aan. Veel Plezier

Commands

gitlab-ctl status
gitlab-ctl reconfigure