diaspora/config/application.yml.example
Daniel Grippi c27d0b8780 Merge pull request #2281 from justindthomas/backup-postgres
backup task handles postgresql dumps
2011-11-29 14:09:51 -08:00

237 lines
7.1 KiB
Text

# 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
#
# Hostname of the machine you're running Diaspora on, as seen from the internet.
# For development and testing, you can leave this as is.
pod_url: "http://localhost:3000"
# 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
# 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
# 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'
#
# Settings
#
# Set this to true to prevent people from signing up for your pod without an invitation.
registrations_closed: false
# Set this to true if you want users to invite as many people as they want
open_invitations: true
# 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 don't want your server
# to contact joindiaspora.com, set this to true:
no_follow_diasporahq: false
# Community Spotlight
# (expressed as an array of Diaspora IDs)
community_spotlight:
- 'diasporahq@joindiaspora.com'
# Email to send spotlight suggestions to
spotlight_suggest_email: ''
# List of users who have admin privileges
# (expressed as an array of local usernames)
admins:
- 'example_user1dsioaioedfhgoiesajdigtoearogjaidofgjo'
# Mount resque-web into routes
# This allows an administrator to see info about the workers
mount_resque_web: true
# Logging setup
# Enable extensive logging to log/{development,test,production}.log
debug: false
# If you want normal Rails logs, set this to false in the appropriate environment.
# It is false by default in development and test.
enable_splunk_logging: true
# Enable extensive logging to websocket server.
socket_debug : false
# Hoptoad api key, send failures to Hoptoad
hoptoad_api_key: ''
# Miscellaneous
# 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
# File containing pid of running script/websocket_server.rb
socket_pidfile: "log/diaspora-wsd.pid"
# Do not touch unless you know what you're doing
socket_collection_name: 'websocket'
# Diaspora is only tested against this default pubsub server. You probably don't want to change this.
pubsub_server: 'https://pubsubhubbub.appspot.com/'
# Email
# Setting this to true enables Diaspora's "send email" functionality,
# requiring meaningful smtp_* settings. These are options for RoR's
# ActionMailer class.
mailer_on: false
# Address/port to smtp server handling outgoing mail.
smtp_address: 'smtp.example.com'
smtp_port: '587'
# This chooses which mailer should be used. 'smtp' for a smtp
# connection or 'sendmail' to use the sendmail binary, or messagebus, to use the messagebus service
mailer_method: 'smtp'
#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 'one', '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'
# Redis cache
# Enable the cache layer (Redis)
# If you expect to have thousands of users on your pod,
# we *highly* suggest you enable this.
# IMPORTANT: THE CACHE REQUIRES REDIS 2.4 OR LATER.
#
# 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: ''
# Web tracking
# google analytics key - if false, no javascript included
google_a_site: false
# piwik integration - if not set, no javascript included
piwik_id:
# the site url in raw format (e.g. pikwik.examplehost.com)
piwik_url:
# Backups
backup_retention_days: 3
# cloudfiles username and api-key - used for backups
cloudfiles_username: 'example'
cloudfiles_api_key: 'abc123'
cloudfiles_db_container: 'Database Backup'
cloudfiles_images_container: 'Image Backup'
# Donations
# Leave this blank to not show the request for donations
# Use paypal for recurring donations
paypal_hosted_button_id: ""
#
# Use this section to override default settings in specific environments
#
development:
<<: *defaults
enable_splunk_logging: false
production:
<<: *defaults
#
# Do not touch unless you know what you're doing
#
test:
<<: *defaults
pod_url: "http://localhost:9887"
socket_port: 8081
enable_splunk_logging: false
open_invitations: true
integration_1:
<<: *defaults
pod_url: "http://localhost:45789"
enable_splunk_logging: false
integration_2:
<<: *defaults
pod_url: "http://localhost:34658"
enable_splunk_logging: false