Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6779 from Zauberstuhl/prosody_integration
Configuration wrapper for Prosody
- Loading branch information
Showing
10 changed files
with
69 additions
and
133 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
If you want to encrypt your chat streams with prosody. | ||
Add to `config/certs` your server certificate and key. | ||
|
||
The domain name should be included in the file name e.g.: | ||
|
||
* example.com.crt | ||
* example.com.key |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
if AppConfig.chat.enabled? && AppConfig.chat.server.enabled? | ||
db = Rails.application.config | ||
.database_configuration[Rails.env] | ||
|
||
Prosody.update_configuration( | ||
bosh_port: AppConfig.chat.server.bosh.port, bosh_path: AppConfig.chat.server.bosh.bind, | ||
bosh_interface: AppConfig.chat.server.bosh.address, | ||
|
||
log_debug: (AppConfig.chat.server.log.debug? ? "debug" : "info"), | ||
log_info: "#{Dir.pwd}/#{AppConfig.chat.server.log.info}", | ||
log_error: "#{Dir.pwd}/#{AppConfig.chat.server.log.error}", | ||
|
||
certs: "#{Dir.pwd}/#{AppConfig.chat.server.certs}", | ||
hostname: AppConfig.environment.url, | ||
|
||
virtualhost_driver: db["adapter"], | ||
virtualhost_database: db["database"], | ||
virtualhost_username: db["username"], | ||
virtualhost_password: db["password"], | ||
virtualhost_host: db["host"] | ||
) | ||
end |
This file was deleted.
Oops, something went wrong.