-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Diaspora configuration wrapper for Prosody
Signed-off-by: Lukas Matt <lukas@zauberstuhl.de>
- Loading branch information
Lukas Matt
committed
Apr 25, 2016
1 parent
7dbd94b
commit f0d5ff1
Showing
9 changed files
with
58 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
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.