Created
May 29, 2017 00:33
-
-
Save unarist/2163d1f023a316c229d10575e44c6d4d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| diff --git a/config/initializers/ostatus.rb b/config/initializers/ostatus.rb | |
| index 342996d..6f29ea3 100644 | |
| --- a/config/initializers/ostatus.rb | |
| +++ b/config/initializers/ostatus.rb | |
| @@ -16,7 +16,7 @@ Rails.application.configure do | |
| config.x.alternate_domains = alternate_domains.split(/\s*,\s*/) | |
| config.action_mailer.default_url_options = { host: web_host, protocol: https ? 'https://' : 'http://', trailing_slash: false } | |
| - config.x.streaming_api_base_url = 'ws://localhost:4000' | |
| + config.x.streaming_api_base_url = ENV.fetch('STREAMING_API_BASE_URL') { "ws://localhost:4000" } | |
| if Rails.env.production? | |
| config.x.streaming_api_base_url = ENV.fetch('STREAMING_API_BASE_URL') { "ws#{https ? 's' : ''}://#{web_host}" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment