application.yml.example 7.62 KB
Newer Older
danielgrippi's avatar
danielgrippi committed
1
#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
Raphael's avatar
Raphael committed
2
#   licensed under the Affero General Public License version 3 or later.  See
3 4
#   the COPYRIGHT file.

5
defaults: &defaults
Alec Leamas's avatar
Alec Leamas committed
6

7 8 9 10
  #
  # Environment
  #

11
  # Hostname of the machine you're running Diaspora on, as seen from the internet.
12 13 14 15 16
  # This should be the URL you want to use to access the pod. So if you plan to
  # reverse proxy it, it should be the URL the proxy listens on.
  # DO NOT CHNANGE THIS AFTER INITIAL SETUP UNLESS YOU KNOW WHAT YOU'RE DOING!
  # However changing http to https is okay and has no consquences. If you do change it
  # you have to start over as it's hardcoded into the database.
17
  # For development and testing, you can leave this as is.
18
  pod_url: "http://localhost:3000"
Alec Leamas's avatar
Alec Leamas committed
19

20 21 22 23 24 25
  # Websocket host - leave as 0.0.0.0 unless you know what you are doing
  socket_host: 0.0.0.0

  # Websocket port - should normally be 8080 or 8081.
  socket_port: 8080

26 27 28 29
  # Setting the root certificate bundle (this is operating system specific). Examples, uncomment one:
  ca_file: '/etc/pki/tls/certs/ca-bundle.crt' # CentOS
  #ca_file: '/etc/ssl/certs/ca-certificates.crt' # Debian
  #ca_file: '/etc/ssl/certs/ca-certificates.crt' # Gentoo
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

  # Secure websocket confguration (wss://).
  # Requires SSL cert and key
  socket_secure: false
  socket_cert_chain_location: '/full/path/to/cert_chain.crt'
  socket_private_key_location: '/full/path/to/file.key'


  # URL for a remote redis, on the default port. Don't forget to restrict IP access!
  # leave it empty for the default (localhost)
  redis_url: ''

  # Amazon S3 for photos

  # s3 config - if set, carrierwave will store your photos on s3. Otherwise they're on the filesystem.
  #s3_key: 'key'
  #s3_secret: 'secret'
  #s3_bucket: 'my_photos'
  s3_region: 'us-east-1'


51 52 53 54
  # Serve static assets via the appserver, this is not recommended for production use,
  # let your reverse proxy/webserver do it.
  serve_static_assets: false

55 56 57 58
  #
  # Settings
  #

59
  # Set this to true to prevent people from signing up for your pod without an invitation.
60 61
  registrations_closed: false

62 63 64
  # Set this to true if you want users to invite as many people as they want
  open_invitations: true

65
  # Set this to true if you don't want your users to follow the diasporahq@joindiaspora.com
Pistos's avatar
Pistos committed
66
  # account on account creation.  The diasporahq account helps users start with some
67 68 69 70
  # activity in their stream and get news about Diaspora, but if you don't want your server
  # to contact joindiaspora.com, set this to true:
  no_follow_diasporahq: false

71
  # Community Spotlight
72
  # (expressed as an array of Diaspora IDs)
73
  community_spotlight:
74
    - 'diasporahq@joindiaspora.com'
75
  
76 77
  # Email to send spotlight suggestions to
  spotlight_suggest_email: ''
78 79

  # List of users who have admin privileges
80
  # (expressed as an array of local usernames)
81 82 83
  admins:
    - 'example_user1dsioaioedfhgoiesajdigtoearogjaidofgjo'

84 85 86 87
  # Mount resque-web into routes
  # This allows an administrator to see info about the workers
  mount_resque_web: true

88 89
  # Logging setup

Alec Leamas's avatar
Alec Leamas committed
90
  # Enable extensive logging to log/{development,test,production}.log
91
  debug: false
Alec Leamas's avatar
Alec Leamas committed
92 93

  # Enable extensive logging to websocket server.
94
  socket_debug : false
Alec Leamas's avatar
Alec Leamas committed
95

96 97 98
  # Hoptoad api key, send failures to Hoptoad
  hoptoad_api_key: ''

99 100 101 102 103 104 105 106 107
  #social media setup
  facebook_app_id:  ''
  facebook_app_secret: ''

  twitter_consumer_key: ''
  twitter_consumer_secret: ''

  tumblr_consumer_key: ''
  tumblr_consumer_secret: '' 
108 109
  # Miscellaneous

110 111 112
  NEW_RELIC_LICENSE_KEY: ''


113 114 115 116 117
  # If set to true Diaspora will work with just the appserver, thin by default,
  # running, however this makes it quite slow as all the time intensive jobs
  # must be run inside the request cycle. Also the live updates from the Websocket
  # will be disabled.
  single_process_mode: false
Alec Leamas's avatar
Alec Leamas committed
118 119

  # File containing pid of running script/websocket_server.rb
120
  socket_pidfile: "log/diaspora-wsd.pid"
Alec Leamas's avatar
Alec Leamas committed
121

122
  # Do not touch unless you know what you're doing
123
  socket_collection_name: 'websocket'
Alec Leamas's avatar
Alec Leamas committed
124

125
  # Diaspora is only tested against this default pubsub server. You probably don't want to change this.
126
  pubsub_server: 'https://pubsubhubbub.appspot.com/'
Alec Leamas's avatar
Alec Leamas committed
127

128
  # Email
129 130

  # Setting this to true enables Diaspora's "send email" functionality,
Alec Leamas's avatar
Alec Leamas committed
131 132
  # requiring meaningful smtp_* settings. These are options for RoR's
  # ActionMailer class.
133
  mailer_on: false
Alec Leamas's avatar
Alec Leamas committed
134

135
  # Address/port to smtp server handling outgoing mail.
136 137
  smtp_address: 'smtp.example.com'
  smtp_port: '587'
Alec Leamas's avatar
Alec Leamas committed
138

139
  # This chooses which mailer should be used. 'smtp' for a smtp
140
  # connection or 'sendmail' to use the sendmail binary, or messagebus, to use the messagebus service
141
  mailer_method: 'smtp'
Alec Leamas's avatar
Alec Leamas committed
142

143 144 145
  #API key if you are using message bus
  message_bus_api_key: ''

146 147
  # The path to the sendmail binary. Ignored if mailer_method is not set to sendmail
  sendmail_location: '/usr/sbin/sendmail'
148 149 150
  
  # Set this to true if you want to use exim and sendmail
  sendmail_exim_fix: false
151

152 153
  # Authentication required to send mail. Use one of 'plain',
  # 'login' or 'cram_md5'. Use 'none' if server does not support
154 155
  # authentication
  smtp_authentication: 'plain'
Alec Leamas's avatar
Alec Leamas committed
156

MrZYX's avatar
MrZYX committed
157 158 159
  # Automatically enable TLS? Ignored if smtp_authentication is set to none
  smtp_starttls_auto: true

160 161 162 163 164
  # OpenSSL verify mode used when connecting to a SMTP server with TLS.
  # Set this to none if you have a self signed certificate, keep it empty (not '') for the default
  # Possible values: none, peer, client_once, fail_if_no_peer_cert
  smtp_openssl_verify_mode:

165
  # Domain of smtp server.
Pistos's avatar
Pistos committed
166
  # This should match the common name of the certificate
167 168 169
  # the SMTP server sends. If he sends one
  smtp_domain: 'example.com'

170 171
  # Credentials to log in to the SMTP server - may be necessary if
  # smtp_authentication is not 'none'
Alec Leamas's avatar
Alec Leamas committed
172 173
  smtp_username: 'smtp_username'
  smtp_password: 'secret'
174

175 176
  # Sender address in Diaspora's outgoing mail.
  smtp_sender_address: 'no-reply@joindiaspora.com'
177

178 179 180 181 182
  # Redis cache

  # Enable the cache layer (Redis)
  # If you expect to have thousands of users on your pod,
  # we *highly* suggest you enable this.
183
  # IMPORTANT: THE CACHE REQUIRES REDIS 2.4 OR LATER.
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
  #
  # By default, the cache layer will piggyback off of the Redis
  # database used by your Resque workers.
  redis_cache: false

  # The location of your redis cache.
  # IMPORTANT: DO NOT CHANGE THIS IF YOU DO NOT KNOW WHAT YOU ARE DOING!
  #
  # Leave this blank to use the same Redis database
  # that your Resque workers use (happy path).
  #
  # This takes an ip (or DNS record).  It assumes that your Redis database
  # is running on the default Redis port.
  redis_location: ''


200
  # Web tracking
201 202

  # google analytics key - if false, no javascript included
203
  google_a_site: false
204

205
  # piwik integration - if not set, no javascript included
206
  piwik_id:
207
  # the site url in raw format (e.g. pikwik.examplehost.com)
208 209
  piwik_url:

210
  # Backups
211
  backup_retention_days: 3
212

213
  # cloudfiles username and api-key - used for backups
214 215
  cloudfiles_username: 'example'
  cloudfiles_api_key:  'abc123'
216 217
  cloudfiles_db_container: 'Database Backup'
  cloudfiles_images_container: 'Image Backup'
218

219
  # Donations
220 221
  
  # Leave this blank to not show the request for donations
222
  # Use paypal for recurring donations
223 224
  paypal_hosted_button_id: ""

225
#
226
# Use this section to override default settings in specific environments
227 228
#

229
development:
230
  <<: *defaults
231
  serve_static_assets: true
232

233
production:
234
  <<: *defaults
235

236
#
237
# Do not touch unless you know what you're doing
238 239
#

240
test:
241
  <<: *defaults
242
  pod_url: "http://localhost:9887"
243
  socket_port: 8081
244
  open_invitations: true
245
  serve_static_assets: true
246

247 248 249
integration_1:
  <<: *defaults
  pod_url: "http://localhost:45789"
250
  serve_static_assets: true
Pistos's avatar
Pistos committed
251

252 253 254
integration_2:
  <<: *defaults
  pod_url: "http://localhost:34658"
255
  serve_static_assets: true