User Tools

Site Tools


start:howto:gitlab_with_i-mscp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
start:howto:gitlab_with_i-mscp [2015/07/01 17:48]
ninos created
start:howto:gitlab_with_i-mscp [2017/09/01 10:21] (current)
heppi
Line 9: Line 9:
 <code bash>​gitlab-ctl reconfigure</​code>​ <code bash>​gitlab-ctl reconfigure</​code>​
  
-3. Create ​an apache2-configuration file to redirect http-requests to https in /​etc/​apache2/​sites-availabe/​git.yourdomain.tld.conf +3. Create ​a subdomain or domain alias
-<file - /​etc/​apache2/​sites-availabe/​git.yourdomain.tld.conf>​ +
-<​VirtualHost YOURIP:​80>​ +
-    ServerName git.yourdomain.tld +
-    ServerAdmin [email protected]+
  
-    ErrorLog /​var/​log/​apache2/​git.yourdomain.tld/​error.log+{{:​start:​howto:​gitlabimscpconfig.png?800|}}
  
-    Redirect / https://​git.yourdomain.tld/​ +4. Enable ​needed headers module 
-</​VirtualHost>​ +<code bash>a2enmod headers</​code>​
-</​file>​ +
-4. Enable ​vhost file +
-<code bash>a2ensite git.yourdomain.tld</​code>​+
  
-5. Create an apache2-configuration file to set a reverse proxy to the local gitlab instance in /​etc/​apache2/​sites-availabe/​git.yourdomain.tld_ssl.conf +5. Configure Letsencrypt entry (when available)
-<file - /​etc/​apache2/​sites-availabe/​git.yourdomain.tld_ssl.conf>​ +
-<​VirtualHost YOURIP:​443>​ +
-    ServerName git.yourdomain.tld +
-    ServerAdmin [email protected]+
  
-    ErrorLog /​var/​log/​apache2/​git.yourdomain.tld/​error.log +**or** ​
- +
-    RequestHeader set Host "​git.yourdomain.tld"​ +
-    RequestHeader add X-Forwarded-Ssl on +
-    RequestHeader set X-Forwarded-For %{REMOTE_IP}e +
-    RequestHeader set X-Forwarded-Proto "​https"​ +
- +
-    ProxyPreserveHost On +
-    ProxyPass / http://​localhost:​8888/​ +
-    ProxyPassReverse / http://​localhost:​8888/​ +
- +
-    SSLEngine On +
-    SSLCertificateFile /​etc/​gitlab/​ssl/​git.yourdomain.tld.pem +
-    SSLCertificateChainFile /​etc/​gitlab/​ssl/​git.yourdomain.tld.pem +
-</​VirtualHost>​ +
-</​file>​ +
-6. Enable vhost file +
-<code bash>​a2ensite git.yourdomain.tld_ssl</​code>​ +
- +
-7. Enable needed headers module +
-<code bash>​a2enmod headers</​code>​+
  
-8. Create certificate and copy to /​etc/​gitlab/​ssl/​git.yourdomain.tld.pem (decrypted private, public, intermediate) +6. Create certificate and copy to /​etc/​gitlab/​ssl/​git.yourdomain.tld.pem (decrypted private, public, intermediate) 
-9. Reload apache2 service+7. Reload apache2 service
 <code bash>​apache2 reload</​code>​ <code bash>​apache2 reload</​code>​
/var/www/virtual/i-mscp.net/wiki/htdocs/data/attic/start/howto/gitlab_with_i-mscp.1435772923.txt.gz · Last modified: 2015/07/01 17:48 by ninos