User Tools

Site Tools


tutorials:gitlab

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
tutorials:gitlab [2013/02/22 18:12]
razvan
tutorials:gitlab [2013/02/22 18:58]
razvan
Line 21: Line 21:
 *** And then restart sidekiq:<code> *** And then restart sidekiq:<code>
 sudo -u gitlab -H bundle exec rake sidekiq:start RAILS_ENV=production sudo -u gitlab -H bundle exec rake sidekiq:start RAILS_ENV=production
 +</code>
 +* I use Apache in conjunction with unicorn.
 +** Configure unicorn to listen to TCP connections:<code>
 +#listen 8080 # listen to port 8080 on all TCP interfaces
 +listen "127.0.0.1:8080"  # listen to port 8080 on the loopback interface
 +listen "#{app_dir}/tmp/sockets/gitlab.socket"
 +</code>
 +** Configure Apache in conjunction with unicorn:<code>
 +<VirtualHost *:443>
 + ServerName houdini.cs.pub.ro
 + ServerAdmin webmaster@houdini.cs.pub.ro
 +
 + DocumentRoot /home/gitlab/gitlab/public
 + <Directory /home/gitlab/gitlab/public>
 + AllowOverride All
 + Options -MultiViews
 + </Directory>
 +
 + <Proxy balancer://unicornservers>
 + BalancerMember http://127.0.0.1:8080
 + </Proxy>
 +
 + RewriteEngine on
 + RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
 + RewriteRule ^/(.*)$ balancer://unicornservers%{REQUEST_URI} [P,QSA,L]
 +
 + ProxyPass /uploads !
 + ProxyPass / balancer://unicornservers/
 + ProxyPassReverse / balancer://unicornservers/
 + ProxyPreserveHost on
 +
 + <Proxy *>
 + Order deny,allow
 + Allow from all
 + </Proxy>
 +
 + #   SSL Engine Switch:
 + #   Enable/Disable SSL for this virtual host.
 + SSLEngine on
 +
 + #   Specify certificate file and private key file for SSL.
 + SSLCertificateFile /etc/ssl/certs/houdini.cs.pub.ro.crt-roedunet
 + SSLCertificateKeyFile /etc/ssl/private/houdini.cs.pub.ro.key
 + SSLCertificateChainFile /etc/ssl/certs/terena-ca-chain.pem
 +
 + ErrorLog ${APACHE_LOG_DIR}/gitlab/error.log
 + LogLevel warn
 + CustomLog ${APACHE_LOG_DIR}/gitlab/access.log combined
 +</VirtualHost>
 </code> </code>
tutorials/gitlab.txt · Last modified: 2020/07/20 09:16 (external edit)