0

in a project I´m working I got the task of being responsible for our gitlab server. In the gitlab.rb of this existing service I found the following line:

nginx['custom_gitlab_server_config'] = "location ^~ /.well-known { root /var/www/letsencrypt; }"

Can anyone explain me what´s happening there?

Thank you!

eragon-2006
  • 127
  • 3

1 Answers1

0

It looks like it's redirecting requests to gitlabserver.tld/.well-known to /var/www/letsencrypt. Let's Encrypt verifies you own a domain by placing the .well-known directory in the root of your webserver than attempting to read files from there.

So the config line is basically to allow letsencrypt verification for free SSL certificates.

nginx['custom_gitlab_server_config']

allows you to specify custom configuration for nginx which is the web server gitlab uses. Info on nginx location can be found here: http://nginx.org/en/docs/http/ngx_http_core_module.html#location

nijave
  • 381
  • 1
  • 2
  • 8