# Allow to override the Gitlab URL from an environment variable, as this will avoid having to change the configuration file for simple deployments.config=$(echo'<% gitlab_url = URI(ENV["GITLAB_URL"] || "http://localhost:80") %>' | cat - config/gitlab.yml)echo"$config"> config/gitlab.ymlsed-i"s/host: localhost/host: <%= gitlab_url.host %>/" config/gitlab.ymlsed-i"s/port: 80/port: <%= gitlab_url.port %>/" config/gitlab.ymlsed-i"s/https: false/https: <%= gitlab_url.scheme == 'https' %>/" config/gitlab.yml