-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.settings.yml
124 lines (120 loc) · 2.98 KB
/
example.settings.yml
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# Example settings file.
#
# @package ApiOpenStudio
# @license This Source Code Form is subject to the terms of the ApiOpenStudio Public License.
# If a copy of the license was not distributed with this file,
# You can obtain one at https://www.apiopenstudio.com/license/.
# @author john89 (https://gitlab.com/john89)
# @copyright 2020-2030 Naala Pty Ltd
# @link https://www.apiopenstudio.com
debug:
formatters:
default:
format: null
date_format: null
allow_inline_line_breaks: false
ignore_empty_context_and_extra: true
handlers:
api_log_file:
class: StreamHandler
formatter: default
level: DEBUG
stream: /var/log/nginx/api.log
db_log_file:
class: StreamHandler
formatter: default
level: DEBUG
stream: /var/log/nginx/db.log
stdout:
class: StreamHandler
formatter: default
level: DEBUG
stream: php://stdout
fire_php:
class: FirePHPHandler
formatter: default
chrome_php:
class: ChromePHPHandler
formatter: default
syslog:
class: SyslogHandler
ident: ApiOpenStudio
facility: local6
level: DEBUG
formatter: default
error_log:
class: ErrorLogHandler
formatter: default
processor:
class: ProcessHandler
command: '/usr/bin/php /var/www/monolog/someScript.php'
level: DEBUG
formatter: default
mongo_db:
class: MongoDBHandler
mongodb: client
collection: logs
level: DEBUG
formatter: default
loggers:
api:
handlers:
- api_log_file
db:
handlers:
- db_log_file
db:
definition_path: "includes/Db/dbDefinition.yaml"
driver: mysqli
host: apiopenstudio-db
root_password: my_s3cr3t
username: apiopenstudio
password: my_s3cr3t
database: apiopenstudio
options:
debug: false
charset: utf8
collation: utf8_unicode_ci
api:
protocols:
- https
base_path: "/var/www/html/api/"
url: "api.apiopenstudio.local"
# cache:
# active: false
# cache:
# active: true
# type: memcached
# servers:
# host: apiopenstudio-memcached
# port: 11211
# wight: 1
cache:
active: true
type: redis
servers:
host: apiopenstudio-redis
port: 6379
password:
default_format: json
wrap_json_in_response_object: true
core_account: apiopenstudio
core_application: core
core_resource_lock: false
dir_public: "public/"
dir_resources: "includes/resources/"
dir_uploads: "~/Downloads/"
dir_tmp: "/tmp/"
jwt_private_key: "/var/www/html/api/jwt.key"
jwt_public_key: "/var/www/html/api/jwt.key.pub"
jwt_alg_type: "Rsa"
jwt_alg: "Sha256"
jwt_life: "+1 hour"
jwt_issuer: "api.apiopenstudio.local"
jwt_permitted_for: "api.apiopenstudio.local"
openapi_version: "3.0.3"
openapi_directory: "includes/openapiSchema"
email:
from: "Admin <[email protected]>"
reply_to: "Contact <[email protected]>"
dsn: "smtp://USERNAME:PASSWORD@DOMAIN:PORT"