Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b71e5a17
Commit
b71e5a17
authored
Apr 23, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add default_url_options initializer
Fixes #2266
parent
926a8146
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
config/initializers/8_default_url_options.rb
config/initializers/8_default_url_options.rb
+13
-0
No files found.
config/initializers/8_default_url_options.rb
0 → 100644
View file @
b71e5a17
unless
Rails
.
env
.
test?
default_url_options
=
{
host:
Gitlab
.
config
.
gitlab
.
host
,
protocol:
Gitlab
.
config
.
gitlab
.
protocol
,
script_name:
Gitlab
.
config
.
gitlab
.
relative_url_root
}
unless
Gitlab
.
config
.
gitlab_on_standard_port?
default_url_options
[
:port
]
=
Gitlab
.
config
.
gitlab
.
port
end
Rails
.
application
.
routes
.
default_url_options
=
default_url_options
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment