First, setup a domain to point to the server such as gitlab.example.com.
Second, follow the procedure at https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md till the end of Step 6. Do not proceed with 7 to install Nginx.
If you are using MySQL, remember to setup mysql database.
Third, configure apache2
sudo a2enmod proxy_http
<VirtualHost *:80>
ServerName gitlab.example.com
#git lab passthrough
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
</VirtualHost>
sudo a2ensite gitlab.conf sudo service apache2 reload
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => 'gmail.com',
:user_name => 'account@gmail.com',
:password => 'password',
:authentication => :plain,
:enable_starttls_auto => true
}