]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/config/config.yml
Move default configuration out of parameters
[github/wallabag/wallabag.git] / app / config / config.yml
CommitLineData
93fd4692
NL
1imports:
2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
5
6framework:
7 #esi: ~
78cedc22 8 translator: { fallback: "%locale%" }
93fd4692
NL
9 secret: "%secret%"
10 router:
11 resource: "%kernel.root_dir%/config/routing.yml"
12 strict_requirements: ~
13 form: ~
14 csrf_protection: ~
15 validation: { enable_annotations: true }
16 templating:
17 engines: ['twig']
18 #assets_version: SomeVersionScheme
19 default_locale: "%locale%"
20 trusted_hosts: ~
21 trusted_proxies: ~
22 session:
23 # handler_id set to null will use default session handler from php.ini
73cd160b
JB
24 handler_id: session.handler.native_file
25 save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
93fd4692
NL
26 fragments: ~
27 http_method_override: true
d8dbe76b 28 assets: ~
93fd4692 29
c89d35e8
NL
30wallabag_core:
31 languages:
32 en: 'English'
33 fr: 'Français'
57cf6fd7 34 de: 'Deutsch'
f47101e0 35 tr: 'Türkçe'
bc789687
JB
36 items_on_page: 12
37 theme: material
38 language: en
39 rss_limit: 50
77a7752a
JB
40
41wallabag_import:
42 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain']
b1d05721 43 resource_dir: "%kernel.root_dir%/../web/uploads/import"
c89d35e8 44
93fd4692
NL
45# Twig Configuration
46twig:
47 debug: "%kernel.debug%"
48 strict_variables: "%kernel.debug%"
bd9f0815
NL
49 globals:
50 share_twitter: %share_twitter%
51 share_mail: %share_mail%
52 share_shaarli: %share_shaarli%
53 shaarli_url: %shaarli_url%
54 share_diaspora: %share_diaspora%
55 diaspora_url: %diaspora_url%
56 flattr: %flattr%
57 flattrable: 1
58 flattred: 2
59 carrot: %carrot%
60 show_printlink: %show_printlink%
61 export_epub: %export_epub%
62 export_mobi: %export_mobi%
63 export_pdf: %export_pdf%
b89444ad
TC
64 export_csv: %export_csv%
65 export_json: %export_json%
66 export_txt: %export_txt%
67 export_xml: %export_xml%
b84a8055 68 version: %app.version%
18cf594f 69 twofactor_auth: %twofactor_auth%
fdab81e9 70 warning_message: %warning_message%
b84a8055 71 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
5c895a7f
JB
72 form_themes:
73 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
6682139e 74
93fd4692
NL
75# Assetic Configuration
76assetic:
77 debug: "%kernel.debug%"
78 use_controller: false
79 bundles: [ ]
80 #java: /usr/bin/java
81 filters:
82 cssrewrite: ~
83 #closure:
84 # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
85 #yui_css:
86 # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
87
88# Doctrine Configuration
89doctrine:
90 dbal:
91 driver: "%database_driver%"
61b9fdd5
NL
92 host: "%database_host%"
93 port: "%database_port%"
94 dbname: "%database_name%"
95 user: "%database_user%"
96 password: "%database_password%"
93fd4692 97 charset: UTF8
9d50517c 98 path: "%database_path%"
93fd4692
NL
99
100 orm:
101 auto_generate_proxy_classes: "%kernel.debug%"
164bd801
J
102 entity_managers:
103 default:
164bd801 104 auto_mapping: true
93fd4692 105
3c65dfb7
NL
106stof_doctrine_extensions:
107 default_locale: "%locale%"
108 translation_fallback: true
109 orm:
110 default:
111 tree: true
112 sluggable: true
113
292c1324
NL
114doctrine_migrations:
115 dir_name: "%kernel.root_dir%/DoctrineMigrations"
116 namespace: Application\Migrations
117 table_name: migration_versions
118 name: Application Migrations
119
93fd4692
NL
120# Swiftmailer Configuration
121swiftmailer:
122 transport: "%mailer_transport%"
123 host: "%mailer_host%"
124 username: "%mailer_user%"
125 password: "%mailer_password%"
126 spool: { type: memory }
e4788de5
NL
127
128fos_rest:
129 param_fetcher_listener: true
130 body_listener: true
131 format_listener: true
132 view:
133 view_response_listener: 'force'
134 formats:
135 xml: true
136 json : true
137 templating_formats:
138 html: true
139 force_redirects:
140 html: true
141 failed_validation: HTTP_BAD_REQUEST
142 default_engine: twig
143 routing_loader:
a65f5d55 144 default_format: json
e4788de5 145
cd1298d6
NL
146nelmio_api_doc:
147 sandbox:
148 enabled: false
3c65dfb7 149 name: wallabag API documentation
fca3c757
NL
150
151nelmio_cors:
152 defaults:
153 allow_credentials: false
154 allow_origin: []
155 allow_headers: []
156 allow_methods: []
157 expose_headers: []
158 max_age: 0
159 hosts: []
160 #origin_regex: false
161 paths:
162 '^/api/':
163 allow_origin: ['*']
164 allow_headers: ['X-Custom-Auth']
165 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
166 max_age: 3600
167 '^/':
168 #origin_regex: true
169 allow_origin: ['^http://localhost:[0-9]+']
170 allow_headers: ['X-Custom-Auth']
171 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
172 max_age: 3600
173 hosts: ['^api\.']
32da2a70
J
174
175liip_theme:
176 load_controllers: false
177 themes:
178 - baggy
9948d899 179 - material
32da2a70
J
180 autodetect_theme: wallabag_core.helper.detect_active_theme
181
182 path_patterns:
32da2a70
J
183 bundle_resource:
184 - %%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%
a1691859
NL
185
186fos_user:
187 db_driver: orm
188 firewall_name: main
1210dae1 189 user_class: Wallabag\UserBundle\Entity\User
fcb1fba5 190 registration:
fcb1fba5
NL
191 confirmation:
192 enabled: true
a40dd989
NL
193 from_email:
194 address: %from_email%
195 sender_name: wallabag
fcb1fba5
NL
196fos_oauth_server:
197 db_driver: orm
198 client_class: Wallabag\ApiBundle\Entity\Client
199 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
200 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
201 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
202 service:
203 user_provider: fos_user.user_manager
2db616b5
NL
204
205scheb_two_factor:
2db616b5
NL
206 trusted_computer:
207 enabled: true
208 cookie_name: wllbg_trusted_computer
0d6a7929 209 cookie_lifetime: 2592000
2db616b5
NL
210
211 email:
18cf594f
NL
212 enabled: %twofactor_auth%
213 sender_email: %twofactor_sender%
2db616b5
NL
214 digits: 6
215 template: WallabagUserBundle:Authentication:form.html.twig
23ff8d36 216 mailer: wallabag_user.auth_code_mailer
625acf33
KG
217
218kphoen_rulerz:
219 executors:
220 doctrine: true