Last active
December 16, 2020 13:37
-
-
Save digitalpardoe/53cfb8e749b162acb45c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo usermod -aG git www-data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen *:80; | |
server_name git.yourdomain.com; | |
server_tokens off; | |
root /opt/gitlab/embedded/service/gitlab-rails/public; | |
client_max_body_size 250m; | |
access_log /var/log/gitlab/nginx/gitlab_access.log; | |
error_log /var/log/gitlab/nginx/gitlab_error.log; | |
passenger_ruby /opt/gitlab/embedded/bin/ruby; | |
passenger_set_cgi_param PATH "/opt/gitlab/bin:/opt/gitlab/embedded/bin:/usr/local/bin:/usr/bin:/bin"; | |
passenger_user git; | |
passenger_group git; | |
passenger_enabled on; | |
passenger_min_instances 1; | |
error_page 502 /502.html; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
external_url "http://git.yourdomain.com" | |
# Disable the built-in Postgres | |
postgresql['enable'] = false | |
# Fill in the values for database.yml | |
gitlab_rails['db_adapter'] = 'postgresql' | |
gitlab_rails['db_encoding'] = 'utf8' | |
gitlab_rails['db_host'] = '127.0.0.1' | |
gitlab_rails['db_port'] = '5432' | |
gitlab_rails['db_username'] = 'username' | |
gitlab_rails['db_password'] = 'password' | |
# Configure other GitLab settings | |
gitlab_rails['internal_api_url'] = 'http://git.yourdomain.com' | |
# Disable the built-in nginx | |
nginx['enable'] = false | |
# Disable the built-in unicorn | |
unicorn['enable'] = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment