Skip to content

Instantly share code, notes, and snippets.

@pravsripad
Created July 30, 2015 07:28
Show Gist options
  • Save pravsripad/812280fceb56d7244f45 to your computer and use it in GitHub Desktop.
Save pravsripad/812280fceb56d7244f45 to your computer and use it in GitHub Desktop.
# This file is basically JSON but allowes comment lines that
# start with the # character. Additionally, keys need not to be
# enclosed by quotes.
# Besides those exceptions this file MUST be valid JSON or the
# program will fail.
# Rainy configuration
{
# the Url, containing IP address or hostname and port on which to listen
# if the wildcard "*" is used, we listen on all addresses
#
# If https is used, SSL certs will be created
# You can also use --cert/--pvk to specify your own generated
# certs created by the 'makecert' tool
#
# Note: The port is not optional but must be present for every url!
#
ListenUrl: "XXXXXXXXXXXXXX",
# the path used for data storage (notes, metadata, ssl certs),
# must be writable.
# if empty, the current directory is used
DataPath: "./data/",
# Use server-side encryption of the notes
UseNoteEncryption: true,
# the backend to use, if empty the sqlite backend
# is used.
#
# The sqlite backend writes everything, notes and metadata,
# into a single sqlite3 database file. Recommended for
# medium sized installations with hundreds of users.
Backend: "sqlite",
# PostgreSQL backend, use for maximum DB loads
#Backend: "postgre",
# config for PostgreSQL database
Postgre: {
Username: "XXXXXXXXXXXXXX",
Password: "XXXXXXXXXXXXXX",
Host: "localhost",
Port: 5432
},
# password for the administration web interface
AdminPassword: "XXXXXXXXXXXXXX",
# Multi-user configuration
#
# whether new users can signup
AllowSignup: false,
# required new signed up users to be activated by an administrator?
RequireModeration: true,
# Enables development features, only enable if you know what
# you are doing!
Development: false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment