Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 280 lines (219 sloc) 9.459 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.

defaults: &defaults

  ######################################################
  # Environment Configuration
  ######################################################

  ## Set the hostname of the machine you're running Diaspora on, as seen
  ## from the internet. 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.
  pod_url: "http://localhost:3000/"

  ## Setting the bundle of certificate authorities (CA) certificates.
  ## This is operating system specific.
  ## Examples, uncomment one or add your own:
  ca_file: '/etc/pki/tls/certs/ca-bundle.crt'

  ## Redis URL for a remote redis.
  ## Don't forget to restrict IP access!
  ## Leave it empty for the default ('redis://localhost:6379/0')
  ## You can specify a username and password in it, for example
  ## redis://user:password@remote_host:6379/0
  ## You can also specify a unix socket URL like unix://tmp/redis.sock
  redis_url:

  ## Serve static assets via the appserver.
  ## This is highly not recommended for production use,
  ## let your reverse proxy/webserver do it by serving the files
  ## under public/ directly.
  serve_static_assets: false

  ## Disable SSL requirement
  #when set, your pod will not force you to use https in production
  #NOTE: not all features of Diaspora work without SSL, and you may have trouble federating
  # with other pods
  circumvent_ssl_requirement: false

  # 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: true

  ## Use Amazon S3 instead of your local filesystem
  ## to handle uploaded pictures.
  # 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'

  ## Related to S3 you can set a url to redirect all requests to uploaded
  ## images to another host. If you for example set
  ## https://images.example.org here, all requests made to
  ## pictures under /uploads/images will be redirected to
  ## https://images.example.org/uploads/images/...
  image_redirect_url: ''

  ## Diaspora is only tested against this default pubsub server.
  ## You probably don't want to change this.
  pubsub_server: 'https://pubsubhubbub.appspot.com/'

  ## Include jQuery from Google's CDN
  ## This potentially saves you some traffic and speeds up
  ## load time since most clients already have this one cached
  jquery_cdn: false

  ## Provide a key to enable tracking by Google Analytics
  google_a_site: false

  ## Piwik Tracking
  ## Provide a site ID and the host piwik is running on to enable
  ## tracking through Piwik.
  # piwik integration - if not set, no javascript included
  piwik_id:
  # the site url in raw format (e.g. pikwik.examplehost.com)
  piwik_url:

  ## Chartbeat tracking
  chartbeat_uid:

  ## Mixpanel event tracking
  mixpanel_uid:


  ######################################################
  # General Pod Settings
  ######################################################

  ## Name of your pod
  pod_name: "Diaspora*"

  ## Set this to true to prevent people from signing up for your pod
  ## without an invitation. Note that this needs to be true even for
  ## the first registration (you).
  registrations_closed: false

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

  ## the 'admin' account for your pod... ie for jd.com, this is diasporahq.
  ## (This is not about privileges, but e.g. to determine the sender for
  ## emails sent from the admin panel. If you want to configure an actual
  ## admin accout, use roles instead. See
  ## https://github.com/diaspora/diaspora/wiki/FAQ-for-Pod-Maintainers
  ## "What are roles and how do I use them?")
  admin_account: ''

  ## Settings about invitations

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

  #the default amount of invitiations for an invite link
  invite_count: 25

  ## Paypal donations
  ## You can provide the ID of a hosted Paypal button here to kindly ask
  ## your users for donations to run their pod. If you leave this out
  ## we kindly ask your users to donate to the Diaspora Foundation :)
  paypal_hosted_button_id: ""


  ## Community Spotlight
  ## The community spotlight gives new users a starting point on who
  ## could be interesting Diasporas community.
  ## --------
  ## DEPRECATED - use roles instead, see
  ## https://github.com/diaspora/diaspora/wiki/FAQ-for-Pod-Maintainers
  ## "What are roles and how do I use them?"
  ## --------
  #community_spotlight:
  #list:
  #- 'diasporahq@joindiaspora.com'
  #- 'me@example.org'

  ## E-Mail address users can make suggestions about who should be
  ## in the spotlight to.
  spotlight_suggest_email: ''

  ######################################################
  # Email Configuration
  ######################################################

  ## First you need to enable it ;)
  mailer_on: false

  ## Sender address used in mail send by Diaspora
  #sender_address: 'no-reply@example.org'

  ## This selects which mailer should be used. Take 'smtp' for a smtp
  ## connection, 'sendmail' to use the sendmail binary or
  ## 'messagebus' to use the messagebus service.
  mailer_method: 'smtp'

  # Address/port to smtp server handling outgoing mail.
  smtp_address: 'smtp.example.com'
  smtp_port: '587'

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

  # The path to the sendmail binary. Ignored if mailer_method is not set to sendmail
  sendmail_location: '/usr/sbin/sendmail'

  # Set this to true if you want to use exim and sendmail
  sendmail_exim_fix: false

  # Authentication required to send mail. Use one of 'plain',
  # 'login' or 'cram_md5'. Use 'none' if server does not support
  # authentication
  smtp_authentication: 'plain'

  # Automatically enable TLS? Ignored if smtp_authentication is set to none
  smtp_starttls_auto: true

  # 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:

  # Domain of smtp server.
  # This should match the common name of the certificate
  # the SMTP server sends. If he sends one
  smtp_domain: 'example.com'

  # Credentials to log in to the SMTP server - may be necessary if
  # smtp_authentication is not 'none'
  smtp_username: 'smtp_username'
  smtp_password: 'secret'

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

  ######################################################
  # Social Service Configuration
  ######################################################

  ## OAuth credentials for Facebook:
  facebook_app_id: ''
  facebook_app_secret: ''

  #this will be the namespace for your object, it should be configured in your FB app
  open_graph_namespace: ''


  ## OAuth credentials for Twitter:
  twitter_consumer_key: ''
  twitter_consumer_secret: ''

  ## OAuth credentials for Tumblr
  tumblr_consumer_key: ''
  tumblr_consumer_secret: ''


  ######################################################
  # Debugging Service Tool Integration
  ######################################################

  ## Resque is the background processing sysem used by Diaspora
  ## Resque web is an admin tool for it. This settings decides wheter
  ## or not to inline it into Diaspora.
  mount_resque_web: true

  ## If you use Airbrake provide your API key here:
  airbrake_api_key: ''

  ## If you use NewRelic provide your credentials here:
  NEW_RELIC_LICENSE_KEY: ''
  new_relic_app_name: ''

######################################################
# Overrides
######################################################

development:
  <<: *defaults
  serve_static_assets: true
  no_follow_diasporahq: true

production:
  <<: *defaults
  jquery_cdn: true

##################################################
# FEDERATION LOGGER ##############################
# Do not touch unless you know what you're doing!#
##################################################

test:
  <<: *defaults
  pod_url: "http://localhost:9887/"
  socket_port: 8081
  open_invitations: true
  no_follow_diasporahq: true
  serve_static_assets: true
  mailer_on: true

integration1:
  <<: *defaults
  pod_url: "http://localhost:3001/"
  serve_static_assets: true

integration2:
  <<: *defaults
  pod_url: "http://localhost:3002/"
  serve_static_assets: true
Something went wrong with that request. Please try again.