{
	"port": 8090,
	"admin": [],
	"auth": {
		"protect": ["admin", "profile", "send", "stream", "users", "webhooks"],
		"unprotect": ["receive"],
		"local": {
			"enabled": true
		}
	},
	"cacheSize": 1000,
	"collection": 1000,
	"etags": {
		"ignore": ["/"]
	},
	"logging": {
		"level": "info",
		"enabled": true
	},
	"headers": {
		"cache-control": "private, no-cache"
	},
	"defaults": {
		"store": {
			"key": "id",
			"adapters": {
				"mongo": "mongodb://localhost/rozu"
			},
			"logging": false,
			"versioning": false
		}
	},
	"email": {
		"host": "smtp.host",
		"port": 465,
		"secure": true,
		"from": "",
		"user": "",
		"pass": ""
	},
	"instruction": {
		"receive": "POST must include valid token",
		"register": "POST your 'firstname', 'lastname', 'email', & 'password' to register; password must be 8-20 mixed case alpha, numeric & special characters",
		"send": "POST must include valid token",
		"success": "Success",
		"webhooks_create": "POST 'name', & 'host'",
		"verify": "Please check your email, and verify your account",
		"verify_endpoint": "These aren't the droids you're looking for"
	},
	"error": {
		"invalid_arguments": "Invalid arguments",
		"invalid_credentials": "Invalid credentials",
		"email_used": "Email has been used",
		"already_authenticated": "Already authenticated"
	},
	"pageSize": 10,
	"password": "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\\s).{8,40}$",
	"templates": {
		"email": {
			"verify": {
				"subject": "Verify your Rozu account",
				"text": "Hi {{firstname}},\nPlease visit {{verify}} to activate your account.",
				"html": "<p>Hi {{firstname}},</p><p>Please visit <a href=\"{{verify}}\" target=\"_blank\"> {{verify}}</a> to activate your account.</p>"
			}
		}
	},
	"rate": {
		"enabled": true,
		"limit": 10,
		"reset": 30,
		"multiplier": {
			"limit": 45,
			"reset": 2
		}
	},
	"valid": {
		"users": ["firstname", "lastname", "email", "password"],
		"webhooks": ["name", "host", "uri", "encoding", "headers"]
	},
	"session": {
		"secret": "kermitthinkshelTer0%",
		"store": "redis",
		"redis": {
			"host": "127.0.0.1",
			"port": 6379
		}
	},
	"stores": [
		{
			"id": "users",
			"index": ["email", "active|email|verified"]
		},
		{
			"id": "webhooks",
			"index": ["user_id", "host", "name"]
		},
		{
			"id": "log",
			"index": ["user_id", "webhook_id", "type", "delivered"]
		},
		{
			"id": "verify",
			"index": ["user_id"]
		}
	],
	"title": "rozu",
	"id": "rozu",
	"validate": false,
	"verify": "",
	"token": "token",
	"coap": {
		"enabled": false
	},
	"retry": {
		"delay": 250,
		"max": 5
	}
}
