Revert "Revert message bus upgrade"

This reverts commit 47e718f5b24cb2d8b991f5b1a51efe3f79f5f934.
This commit is contained in:
Sam
2015-12-09 11:48:41 +11:00
parent 47e718f5b2
commit 65edbb609c
38 changed files with 101 additions and 84 deletions

View File

@ -0,0 +1,14 @@
# tiny middleware to force https if needed
class Discourse::ForceHttpsMiddleware
def initialize(app, config={})
@app = app
end
def call(env)
env['rack.url_scheme'] = 'https' if SiteSetting.use_https
@app.call(env)
end
end