Commit 00ef16a66c3865e534004d236052f8b13f5a6735
1 parent
abc360fe
Exists in
master
and in
4 other branches
Setting: Disable port if https
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
config/initializers/1_settings.rb
@@ -19,7 +19,11 @@ class Settings < Settingslogic | @@ -19,7 +19,11 @@ class Settings < Settingslogic | ||
19 | end | 19 | end |
20 | 20 | ||
21 | def web_port | 21 | def web_port |
22 | - web['port'] ||= 80 | 22 | + if web.https |
23 | + nil | ||
24 | + else | ||
25 | + web['port'] ||= 80 | ||
26 | + end | ||
23 | end | 27 | end |
24 | 28 | ||
25 | def build_url | 29 | def build_url |