-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommon.neon
60 lines (50 loc) · 1.27 KB
/
common.neon
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
# Application parameters and settings. See https://doc.nette.org/configuring
parameters:
application:
# Error presenters to handle application errors
errorPresenter:
4xx: Error:Error4xx
5xx: Error:Error5xx
# Presenter to class name mapping pattern
mapping: App\UI\*\**Presenter
extensions:
redis: Contributte\Redis\DI\RedisExtension
monolog: Contributte\Monolog\DI\MonologExtension
console: Contributte\Console\DI\ConsoleExtension(%consoleMode%)
migrations: Nextras\Migrations\Bridges\NetteDI\MigrationsExtension
session:
autoStart: true
expiration: 14 days
database:
dsn: 'pgsql:host=%env.db_hostname%;port=%env.db_port%;dbname=db'
user: '%env.db_user%'
password: '%env.db_password%'
latte:
strictTypes: yes
migrations:
dir: %appDir%/../migrations
driver: pgsql
dbal: nette
withDummyData: %debugMode%
monolog:
channel:
default: # default channel is required
handlers:
- Monolog\Handler\SyslogHandler(app)
redis:
connection:
default:
uri: 'tcp://%env.redis_hostname%:%env.redis_port%'
storage: true
sessions: false
options:
parameters:
database: 0
session:
uri: 'tcp://%env.redis_hostname%:%env.redis_port%'
storage: false
sessions:
ttl: 86400 # 1 day
options:
parameters:
database: 1