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
|
# Flag to check, that you have not fogot to create (rename) config
#
configured: true
# Applications
#
applications:
- nodeca.core
- nodeca.users
- nodeca.forum
- nodeca.blogs
# Locales
#
locales:
# Application locale used by default (first enabled one if not set).
#
default: en-US
# # List of enabled locales (all found locales by default).
# enabled:
# - en-US
# - en-GB
# - ru-RU
#
# Themes whitelist/blacklist
#
# You can specify either whitelist:
#
# themes:
# enabled:
# - deep-purple
# - pink-floyd
#
# or blacklist of enabled themes:
#
# themes:
# disabled:
# - yellow-submarine
#
# All available themes are enabled by default, when no whitelist or blacklist
# specified. When both white and black lists are provided, whitelist is used.
# Options - different kind of constants, to keep root space clear
#
options:
# Recaptcha keys. Replace with your own
#
recaptcha:
private_key: 6LdSINcSAAAAABs6duZAvnuN2-PwceqKqZMMFEt2
public_key: 6LdSINcSAAAAAPUJnsQreWd-lT-ILxnoIWwLAepO
# Listening options
#
bind:
default:
listen: 0.0.0.0:3000
# SYNOPSIS:
#
# <apiPath>:
# mount: [<proto>:][//<host>[:<port>]][/<path>]
# listen: <address>[:<port = 80>]
# ssl:
# key: /path/to/file.key # Path might be absolute
# cert: /path/to/file.cert # or relative to the root
# pfs: /path/to/file.pfx # of main nodeca application
#
# SSL EXAMPLE:
#
# default:
# listen: 0.0.0.0:3000
# mount: https://localhost:3000
# ssl:
# key: ./etc/server.key
# cert: ./etc/server.cert
#
forum:
mount: /forum
forum.index:
mount: /
# ACTION, WHEN REQUESTED HOST IS UNKNOWN
#
# _ is a special keyword that hold function called when hostname is not
# supposed to be served by server listener, by default 404 not found:
#
#_: !!js/function |
# function (req, res) {
# res.writeHead(404, { 'Content-Type': 'text/plain' });
# res.end('Invalid host ' + req.headers.host);
# }
|