Skip to content

Instantly share code, notes, and snippets.

@lucj
Created August 9, 2016 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucj/bf654056c53b0fdc13e5b5121455aa56 to your computer and use it in GitHub Desktop.
Save lucj/bf654056c53b0fdc13e5b5121455aa56 to your computer and use it in GitHub Desktop.
gitlab-https-setup
## Url on which GitLab will be reachable.
## For more details on configuring external_url see:
## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/configuration.md#configuring-the-external-url-for-gitlab
external_url "https://gitlab.mydomain.com"
################
# GitLab Nginx #
################
## see: https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master/doc/settings/nginx.md
nginx['listen_port'] = 80
nginx['listen_https'] = false
nginx['proxy_set_headers'] = {
"X-Forwarded-Proto" => "https",
"X-Forwarded-Ssl" => "on"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment