Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
058da8ebf6
5 changed files with 26 additions and 24 deletions
|
|
@ -12,6 +12,13 @@ default:
|
|||
pubsub_server: 'https://pubsubhubbub.appspot.com/'
|
||||
mongo_host: 'localhost'
|
||||
mongo_port: 27017
|
||||
smtp_address: 'smtp.example.com'
|
||||
smtp_port: '587'
|
||||
smtp_domain: 'mail.example.com'
|
||||
smtp_authentication: 'plain'
|
||||
smtp_username: 'no-reply@example.com'
|
||||
smtp_password: 'secret'
|
||||
|
||||
|
||||
development:
|
||||
|
||||
|
|
|
|||
|
|
@ -24,15 +24,4 @@ Diaspora::Application.configure do
|
|||
config.active_support.deprecation = :log
|
||||
config.middleware.use MongoMapper::ClearDevMemory
|
||||
#config.threadsafe!
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.default_url_options = {:host => APP_CONFIG[:terse_pod_url]}
|
||||
config.action_mailer.smtp_settings = {
|
||||
:address => APP_CONFIG[:smtp_address],
|
||||
:port => APP_CONFIG[:smtp_port],
|
||||
:domain => APP_CONFIG[:smtp_domain],
|
||||
:authentication => APP_CONFIG[:smtp_authentication],
|
||||
:user_name => APP_CONFIG[:smtp_username],
|
||||
:password => APP_CONFIG[:smtp_password],
|
||||
:enable_starttls_auto => true
|
||||
}
|
||||
end
|
||||
|
|
|
|||
|
|
@ -48,15 +48,4 @@ Diaspora::Application.configure do
|
|||
config.i18n.fallbacks = true
|
||||
config.threadsafe!
|
||||
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.default_url_options = {:host => APP_CONFIG[:terse_pod_url]}
|
||||
config.action_mailer.smtp_settings = {
|
||||
:address => APP_CONFIG[:smtp_address],
|
||||
:port => APP_CONFIG[:smtp_port],
|
||||
:domain => APP_CONFIG[:smtp_domain],
|
||||
:authentication => APP_CONFIG[:smtp_authentication],
|
||||
:user_name => APP_CONFIG[:smtp_username],
|
||||
:password => APP_CONFIG[:smtp_password],
|
||||
:enable_starttls_auto => true
|
||||
}
|
||||
end
|
||||
|
|
|
|||
17
config/initializers/mailer_config.rb
Normal file
17
config/initializers/mailer_config.rb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright (c) 2010, Diaspora Inc. This file is
|
||||
# licensed under the Affero General Public License version 3. See
|
||||
# the COPYRIGHT file.
|
||||
|
||||
Diaspora::Application.configure do
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.default_url_options = {:host => APP_CONFIG[:terse_pod_url]}
|
||||
config.action_mailer.smtp_settings = {
|
||||
:address => APP_CONFIG[:smtp_address],
|
||||
:port => APP_CONFIG[:smtp_port],
|
||||
:domain => APP_CONFIG[:smtp_domain],
|
||||
:authentication => APP_CONFIG[:smtp_authentication],
|
||||
:user_name => APP_CONFIG[:smtp_username],
|
||||
:password => APP_CONFIG[:smtp_password],
|
||||
:enable_starttls_auto => true
|
||||
}
|
||||
end
|
||||
|
|
@ -16,8 +16,8 @@ module Diaspora
|
|||
builder = Nokogiri::XML::Builder.new do |xml|
|
||||
xml.user {
|
||||
xml.username user.username
|
||||
xml.serialized_private_key user.serialized_private_key
|
||||
xml.parent << user.person.to_xml
|
||||
xml.serialized_private_key user.serialized_private_key
|
||||
|
||||
xml.aspects {
|
||||
user.aspects.each do |aspect|
|
||||
|
|
|
|||
Loading…
Reference in a new issue