]>
Commit | Line | Data |
---|---|---|
93fd4692 NL |
1 | imports: |
2 | - { resource: parameters.yml } | |
3 | - { resource: security.yml } | |
4 | - { resource: services.yml } | |
bf7f0cb5 | 5 | - { resource: wallabag.yml } |
93fd4692 | 6 | |
64f81bc3 | 7 | parameters: |
e35f8439 | 8 | # Allows to use the live reload feature for changes in assets |
8655913e | 9 | use_webpack_dev_server: false |
3b792787 | 10 | craue_config.cache_adapter.class: Craue\ConfigBundle\CacheAdapter\SymfonyCacheComponentAdapter |
64f81bc3 | 11 | |
93fd4692 NL |
12 | framework: |
13 | #esi: ~ | |
2bc9cad7 JB |
14 | translator: |
15 | enabled: true | |
16 | fallback: "%locale%" | |
17 | secret: "%secret%" | |
93fd4692 | 18 | router: |
9ca069a6 | 19 | resource: "%kernel.project_dir%/app/config/routing.yml" |
93fd4692 | 20 | strict_requirements: ~ |
2bc9cad7 | 21 | form: ~ |
93fd4692 | 22 | csrf_protection: ~ |
2bc9cad7 JB |
23 | validation: |
24 | enable_annotations: true | |
93fd4692 NL |
25 | templating: |
26 | engines: ['twig'] | |
2bc9cad7 JB |
27 | default_locale: "%locale%" |
28 | trusted_hosts: ~ | |
93fd4692 NL |
29 | session: |
30 | # handler_id set to null will use default session handler from php.ini | |
2bc9cad7 | 31 | handler_id: session.handler.native_file |
9ca069a6 | 32 | save_path: "%kernel.project_dir%/var/sessions/%kernel.environment%" |
2bc9cad7 | 33 | fragments: ~ |
93fd4692 | 34 | http_method_override: true |
d8dbe76b | 35 | assets: ~ |
93fd4692 NL |
36 | |
37 | # Twig Configuration | |
38 | twig: | |
2bc9cad7 | 39 | debug: "%kernel.debug%" |
93fd4692 | 40 | strict_variables: "%kernel.debug%" |
5c895a7f JB |
41 | form_themes: |
42 | - "LexikFormFilterBundle:Form:form_div_layout.html.twig" | |
40e21962 | 43 | exception_controller: wallabag_core.exception_controller:showAction |
6682139e | 44 | |
93fd4692 NL |
45 | # Doctrine Configuration |
46 | doctrine: | |
47 | dbal: | |
2bc9cad7 | 48 | driver: "%database_driver%" |
a1661af1 | 49 | driver_class: "%database_driver_class%" |
61b9fdd5 NL |
50 | host: "%database_host%" |
51 | port: "%database_port%" | |
52 | dbname: "%database_name%" | |
53 | user: "%database_user%" | |
54 | password: "%database_password%" | |
98efffc2 | 55 | charset: "%database_charset%" |
2bc9cad7 | 56 | path: "%database_path%" |
6d204f53 | 57 | unix_socket: "%database_socket%" |
69c21157 | 58 | server_version: 5.6 |
93fd4692 NL |
59 | |
60 | orm: | |
61 | auto_generate_proxy_classes: "%kernel.debug%" | |
164bd801 J |
62 | entity_managers: |
63 | default: | |
164bd801 | 64 | auto_mapping: true |
93fd4692 | 65 | |
3c65dfb7 NL |
66 | stof_doctrine_extensions: |
67 | default_locale: "%locale%" | |
68 | translation_fallback: true | |
69 | orm: | |
70 | default: | |
71 | tree: true | |
72 | sluggable: true | |
73 | ||
292c1324 | 74 | doctrine_migrations: |
9ca069a6 | 75 | dir_name: "%kernel.project_dir%/app/DoctrineMigrations" |
292c1324 NL |
76 | namespace: Application\Migrations |
77 | table_name: migration_versions | |
78 | name: Application Migrations | |
79 | ||
93fd4692 NL |
80 | # Swiftmailer Configuration |
81 | swiftmailer: | |
82 | transport: "%mailer_transport%" | |
2bc9cad7 JB |
83 | host: "%mailer_host%" |
84 | username: "%mailer_user%" | |
85 | password: "%mailer_password%" | |
86 | spool: | |
87 | type: memory | |
e4788de5 NL |
88 | |
89 | fos_rest: | |
90 | param_fetcher_listener: true | |
91 | body_listener: true | |
e4788de5 | 92 | view: |
f1c3f68e JB |
93 | mime_types: |
94 | csv: | |
95 | - 'text/csv' | |
96 | - 'text/plain' | |
97 | pdf: | |
98 | - 'application/pdf' | |
99 | epub: | |
100 | - 'application/epub+zip' | |
101 | mobi: | |
102 | - 'application/x-mobipocket-ebook' | |
e4788de5 NL |
103 | view_response_listener: 'force' |
104 | formats: | |
105 | xml: true | |
f1c3f68e JB |
106 | json: true |
107 | txt: true | |
108 | csv: true | |
109 | pdf: true | |
110 | epub: true | |
111 | mobi: true | |
e4788de5 | 112 | templating_formats: |
2e6239bb | 113 | html: false |
e4788de5 NL |
114 | force_redirects: |
115 | html: true | |
116 | failed_validation: HTTP_BAD_REQUEST | |
117 | default_engine: twig | |
118 | routing_loader: | |
a65f5d55 | 119 | default_format: json |
f1c3f68e JB |
120 | format_listener: |
121 | enabled: true | |
122 | rules: | |
0bacc9e1 NL |
123 | - { path: "^/api/entries/([0-9]+)/export.(.*)", priorities: ['epub', 'mobi', 'pdf', 'txt', 'csv'], fallback_format: json, prefer_extension: false } |
124 | - { path: "^/api", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false } | |
125 | - { path: "^/annotations", priorities: ['json', 'xml'], fallback_format: json, prefer_extension: false } | |
f1c3f68e JB |
126 | # for an unknown reason, EACH REQUEST goes to FOS\RestBundle\EventListener\FormatListener |
127 | # so we need to add custom rule for custom api export but also for all other routes of the application... | |
128 | - { path: '^/', priorities: ['text/html', '*/*'], fallback_format: html, prefer_extension: false } | |
e4788de5 | 129 | |
cd1298d6 NL |
130 | nelmio_api_doc: |
131 | sandbox: | |
132 | enabled: false | |
3f3a6087 JB |
133 | cache: |
134 | enabled: true | |
3c65dfb7 | 135 | name: wallabag API documentation |
fca3c757 NL |
136 | |
137 | nelmio_cors: | |
138 | defaults: | |
139 | allow_credentials: false | |
140 | allow_origin: [] | |
141 | allow_headers: [] | |
142 | allow_methods: [] | |
143 | expose_headers: [] | |
144 | max_age: 0 | |
145 | hosts: [] | |
146 | #origin_regex: false | |
147 | paths: | |
148 | '^/api/': | |
149 | allow_origin: ['*'] | |
150 | allow_headers: ['X-Custom-Auth'] | |
41c9eecf | 151 | allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE'] |
fca3c757 | 152 | max_age: 3600 |
848c2e1b | 153 | '^/oauth/': |
fca3c757 NL |
154 | allow_origin: ['*'] |
155 | allow_headers: ['X-Custom-Auth'] | |
156 | allow_methods: ['POST', 'PUT', 'GET', 'DELETE'] | |
157 | max_age: 3600 | |
158 | '^/': | |
159 | #origin_regex: true | |
160 | allow_origin: ['^http://localhost:[0-9]+'] | |
161 | allow_headers: ['X-Custom-Auth'] | |
162 | allow_methods: ['POST', 'PUT', 'GET', 'DELETE'] | |
163 | max_age: 3600 | |
164 | hosts: ['^api\.'] | |
32da2a70 J |
165 | |
166 | liip_theme: | |
167 | load_controllers: false | |
168 | themes: | |
169 | - baggy | |
9948d899 | 170 | - material |
32da2a70 J |
171 | autodetect_theme: wallabag_core.helper.detect_active_theme |
172 | ||
173 | path_patterns: | |
32da2a70 | 174 | bundle_resource: |
23634d5d | 175 | - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%" |
a1691859 NL |
176 | |
177 | fos_user: | |
178 | db_driver: orm | |
fdc90ceb | 179 | firewall_name: secured_area |
1210dae1 | 180 | user_class: Wallabag\UserBundle\Entity\User |
fcb1fba5 | 181 | registration: |
fcb1fba5 | 182 | confirmation: |
23634d5d | 183 | enabled: "%fosuser_confirmation%" |
a40dd989 | 184 | from_email: |
23634d5d | 185 | address: "%from_email%" |
a40dd989 | 186 | sender_name: wallabag |
5066c3e0 | 187 | |
fcb1fba5 NL |
188 | fos_oauth_server: |
189 | db_driver: orm | |
190 | client_class: Wallabag\ApiBundle\Entity\Client | |
191 | access_token_class: Wallabag\ApiBundle\Entity\AccessToken | |
192 | refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken | |
193 | auth_code_class: Wallabag\ApiBundle\Entity\AuthCode | |
194 | service: | |
5066c3e0 | 195 | user_provider: fos_user.user_provider.username_email |
05cdd393 YE |
196 | options: |
197 | refresh_token_lifetime: 1209600 | |
5066c3e0 | 198 | |
2db616b5 | 199 | scheb_two_factor: |
2db616b5 NL |
200 | trusted_computer: |
201 | enabled: true | |
202 | cookie_name: wllbg_trusted_computer | |
0d6a7929 | 203 | cookie_lifetime: 2592000 |
2db616b5 NL |
204 | |
205 | email: | |
23634d5d JB |
206 | enabled: "%twofactor_auth%" |
207 | sender_email: "%twofactor_sender%" | |
2db616b5 NL |
208 | digits: 6 |
209 | template: WallabagUserBundle:Authentication:form.html.twig | |
23ff8d36 | 210 | mailer: wallabag_user.auth_code_mailer |
625acf33 KG |
211 | |
212 | kphoen_rulerz: | |
177c5510 | 213 | targets: |
625acf33 | 214 | doctrine: true |
fbbda941 | 215 | |
56c778b4 NL |
216 | old_sound_rabbit_mq: |
217 | connections: | |
218 | default: | |
ef75e122 JB |
219 | host: "%rabbitmq_host%" |
220 | port: "%rabbitmq_port%" | |
221 | user: "%rabbitmq_user%" | |
222 | password: "%rabbitmq_password%" | |
56c778b4 | 223 | vhost: / |
ef75e122 | 224 | lazy: true |
56c778b4 | 225 | producers: |
c98db1b6 | 226 | import_pocket: |
56c778b4 NL |
227 | connection: default |
228 | exchange_options: | |
ef75e122 | 229 | name: 'wallabag.import.pocket' |
56c778b4 | 230 | type: topic |
c98db1b6 JB |
231 | import_readability: |
232 | connection: default | |
233 | exchange_options: | |
234 | name: 'wallabag.import.readability' | |
235 | type: topic | |
9ab024b4 JB |
236 | import_pinboard: |
237 | connection: default | |
238 | exchange_options: | |
239 | name: 'wallabag.import.pinboard' | |
240 | type: topic | |
c7ea9b41 JB |
241 | import_instapaper: |
242 | connection: default | |
243 | exchange_options: | |
244 | name: 'wallabag.import.instapaper' | |
245 | type: topic | |
c98db1b6 JB |
246 | import_wallabag_v1: |
247 | connection: default | |
248 | exchange_options: | |
249 | name: 'wallabag.import.wallabag_v1' | |
250 | type: topic | |
251 | import_wallabag_v2: | |
252 | connection: default | |
253 | exchange_options: | |
254 | name: 'wallabag.import.wallabag_v2' | |
255 | type: topic | |
2c61db30 TC |
256 | import_firefox: |
257 | connection: default | |
258 | exchange_options: | |
259 | name: 'wallabag.import.firefox' | |
260 | type: topic | |
261 | import_chrome: | |
262 | connection: default | |
263 | exchange_options: | |
264 | name: 'wallabag.import.chrome' | |
265 | type: topic | |
56c778b4 | 266 | consumers: |
c98db1b6 | 267 | import_pocket: |
56c778b4 NL |
268 | connection: default |
269 | exchange_options: | |
ef75e122 | 270 | name: 'wallabag.import.pocket' |
56c778b4 NL |
271 | type: topic |
272 | queue_options: | |
ef75e122 | 273 | name: 'wallabag.import.pocket' |
ac87e0db | 274 | callback: wallabag_import.consumer.amqp.pocket |
881b0578 | 275 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
c98db1b6 JB |
276 | import_readability: |
277 | connection: default | |
278 | exchange_options: | |
279 | name: 'wallabag.import.readability' | |
280 | type: topic | |
281 | queue_options: | |
282 | name: 'wallabag.import.readability' | |
ac87e0db | 283 | callback: wallabag_import.consumer.amqp.readability |
881b0578 | 284 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
c7ea9b41 JB |
285 | import_instapaper: |
286 | connection: default | |
287 | exchange_options: | |
288 | name: 'wallabag.import.instapaper' | |
289 | type: topic | |
290 | queue_options: | |
291 | name: 'wallabag.import.instapaper' | |
292 | callback: wallabag_import.consumer.amqp.instapaper | |
881b0578 | 293 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
9ab024b4 JB |
294 | import_pinboard: |
295 | connection: default | |
296 | exchange_options: | |
297 | name: 'wallabag.import.pinboard' | |
298 | type: topic | |
299 | queue_options: | |
300 | name: 'wallabag.import.pinboard' | |
301 | callback: wallabag_import.consumer.amqp.pinboard | |
881b0578 | 302 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
c98db1b6 JB |
303 | import_wallabag_v1: |
304 | connection: default | |
305 | exchange_options: | |
306 | name: 'wallabag.import.wallabag_v1' | |
307 | type: topic | |
308 | queue_options: | |
309 | name: 'wallabag.import.wallabag_v1' | |
ac87e0db | 310 | callback: wallabag_import.consumer.amqp.wallabag_v1 |
881b0578 | 311 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
c98db1b6 JB |
312 | import_wallabag_v2: |
313 | connection: default | |
314 | exchange_options: | |
315 | name: 'wallabag.import.wallabag_v2' | |
316 | type: topic | |
317 | queue_options: | |
318 | name: 'wallabag.import.wallabag_v2' | |
ac87e0db | 319 | callback: wallabag_import.consumer.amqp.wallabag_v2 |
881b0578 | 320 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
2c61db30 TC |
321 | import_firefox: |
322 | connection: default | |
323 | exchange_options: | |
324 | name: 'wallabag.import.firefox' | |
325 | type: topic | |
326 | queue_options: | |
327 | name: 'wallabag.import.firefox' | |
328 | callback: wallabag_import.consumer.amqp.firefox | |
881b0578 | 329 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
2c61db30 TC |
330 | import_chrome: |
331 | connection: default | |
332 | exchange_options: | |
333 | name: 'wallabag.import.chrome' | |
334 | type: topic | |
335 | queue_options: | |
336 | name: 'wallabag.import.chrome' | |
337 | callback: wallabag_import.consumer.amqp.chrome | |
881b0578 | 338 | qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"} |
3cc78f06 NL |
339 | |
340 | fos_js_routing: | |
49c5d0ad NL |
341 | routes_to_expose: |
342 | - homepage | |
343 | - starred | |
344 | - archive | |
345 | - all | |
346 | - tag | |
347 | - config | |
348 | - import | |
349 | - developer | |
350 | - howto | |
66e9dde0 | 351 | - fos_user_security_logout |
995c2044 | 352 | - new |
f40c88eb JB |
353 | |
354 | jms_serializer: | |
355 | handlers: | |
356 | # to be removed if we switch to (default) ISO8601 datetime instead of ATOM | |
357 | # see: https://github.com/schmittjoh/JMSSerializerBundle/pull/494 | |
358 | datetime: | |
359 | default_format: "Y-m-d\\TH:i:sO" # ATOM |