diff options
author | Jonne Hass <mrzyx@mrzyx.de> | 2011-09-11 16:45:47 +0400 |
---|---|---|
committer | Jonne Hass <mrzyx@mrzyx.de> | 2011-09-11 16:45:47 +0400 |
commit | cce2ab215161870f2a1f9180852c7d562f4c6189 (patch) | |
tree | b80f42f8d19f72f643c1c5c118b08baebba38266 /config | |
parent | bdd6b9127a39d8dbd9a8273995843fad1c412764 (diff) |
cleaned up application.yml.example
Diffstat (limited to 'config')
-rw-r--r-- | config/application.yml.example | 146 |
1 files changed, 81 insertions, 65 deletions
diff --git a/config/application.yml.example b/config/application.yml.example index f282003eb..008b45b47 100644 --- a/config/application.yml.example +++ b/config/application.yml.example @@ -4,16 +4,52 @@ 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). Defaults: + # CentOS: '/etc/pki/tls/certs/ca-bundle.crt' + # Debian: '/etc/ssl/certs/ca-certificates.crt' + ca_file: '/etc/pki/tls/certs/ca-bundle.crt' + + # 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 to prevent users from sending invitations. - invites_off: false - # Set this to true if you want users to invite as many people as they want open_invitations: true @@ -23,9 +59,16 @@ defaults: &defaults # to contact joindiaspora.com, set this to true: no_follow_diasporahq: false - # + # Featured users + # (expressed as an array of Diaspora IDs) + featured_users: + - 'diasporahq@joindiaspora.com' + + # List of users who have admin privileges + admins: + - 'example_user1dsioaioedfhgoiesajdigtoearogjaidofgjo' + # Logging setup - # # Enable extensive logging to log/{development,test,production}.log debug: false @@ -34,58 +77,46 @@ defaults: &defaults # It is false by default in development and test. enable_splunk_logging: true - # - # Websocket server setup - see script/websocket_server.rb - # - # Enable extensive logging to websocket server. socket_debug : false - # Websocket host - leave as 0.0.0.0 unless you know what you are doing - socket_host: 0.0.0.0 + # 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" - # Websocket port - should normally be 8080 or 8081. - socket_port: 8080 + # Do not touch unless you know what you're doing socket_collection_name: 'websocket' - # 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' - - # - # Federation setup - # - # Diaspora is only tested against this default pubsub server. You probably don't want to change this. pubsub_server: 'https://pubsubhubbub.appspot.com/' - # - # Email setup - # + # 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 - # This chooses which mailer should be used. 'smtp' for a smtp - # connection or 'sendmail' to use the sendmail binary. - mailer_method: 'smtp' - # Address/port to smtp server handling outgoing mail. smtp_address: 'smtp.example.com' smtp_port: '587' - # Domain of smtp server. - smtp_domain: 'example.com' + # This chooses which mailer should be used. 'smtp' for a smtp + # connection or 'sendmail' to use the sendmail binary. + mailer_method: 'smtp' - # Sender address in Diaspora's outgoing mail. - smtp_sender_address: 'no-reply@joindiaspora.com' + # The path to the sendmail binary. Ignored if mailer_method is not set to sendmail + sendmail_location: '/usr/sbin/sendmail' # Authentication required to send mail. Use one of 'one', 'plain', # 'login' or 'cram-md5'. Use 'none' if server does not support @@ -95,17 +126,20 @@ defaults: &defaults # Automatically enable TLS? Ignored if smtp_authentication is set to none smtp_starttls_auto: true + # 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' - # The path to the sendmail binary. - sendmail_location: '/usr/sbin/sendmail' + # Sender address in Diaspora's outgoing mail. + smtp_sender_address: 'no-reply@joindiaspora.com' - # - # Web tracking setup - # + # Web tracking # google analytics key - if false, no javascript included google_a_site: false @@ -115,39 +149,22 @@ defaults: &defaults # the site url in raw format (e.g. pikwik.examplehost.com) piwik_url: - # - # Miscellaneous setup - # + # Backups # cloudfiles username and api-key - used for backups cloudfiles_username: 'example' cloudfiles_api_key: 'abc123' - # List of users who have admin privileges - admins: - - 'example_user1dsioaioedfhgoiesajdigtoearogjaidofgjo' - - # 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' + # Donations # Use paypal for recurring donations paypal_hosted_button_id: "" - # Featured users - # (expressed as an array of Diaspora IDs) - featured_users: - - 'diasporahq@joindiaspora.com' - - single_process_mode: false - #Hoptoad api key - hoptoad_api_key: '' - #url for a remote redis, on the default port. Don't forget to restrict IP access! - redis_url: '' +# # Use this section to override default settings in specific environments +# + development: <<: *defaults enable_splunk_logging: false @@ -155,12 +172,11 @@ development: production: <<: *defaults - # Setting the root certificate bundle (this is operating system specific). Defaults: - # CentOS: '/etc/pki/tls/certs/ca-bundle.crt' - # Debian: '/etc/ssl/certs/ca-certificates.crt' - ca_file: '/etc/pki/tls/certs/ca-bundle.crt' +# # Do not touch unless you know what you're doing +# + test: <<: *defaults pod_url: "http://localhost:9887" |