Commit 00ef16a66c3865e534004d236052f8b13f5a6735

Authored by Dmitriy Zaporozhets
1 parent abc360fe

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 19 end
20 20  
21 21 def web_port
22   - web['port'] ||= 80
  22 + if web.https
  23 + nil
  24 + else
  25 + web['port'] ||= 80
  26 + end
23 27 end
24 28  
25 29 def build_url
... ...