-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix-relative-url-support'
- Loading branch information
Showing
5 changed files
with
67 additions
and
82 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Relative URL support | ||
# WARNING: We recommend using an FQDN to host GitLab in a root path instead | ||
# of using a relative URL. | ||
# Documentation: http://doc.gitlab.com/ce/install/relative_url.html | ||
# Copy this file to relative_url.rb and customize it to run in a non-root path | ||
# | ||
|
||
Rails.application.configure do | ||
config.relative_url_root = "{{GITLAB_RELATIVE_URL_ROOT}}" | ||
end |
This file contains 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
This file contains 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
This file contains 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
that's a long downtime on updates for me @sameersbn...maybe I could make a PR that would use regex(more or less) to do it :)?
(if needed, the compiled version would be using some marker like /%GITLABPATH% which would then be changed to either / or /suburl)