]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
Merge pull request #1297 from wallabag/v2-estimated-time
[github/wallabag/wallabag.git] / app / config / config.yml
1 imports:
2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
5
6 framework:
7 #esi: ~
8 translator: { fallback: "%locale%" }
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
24 handler_id: ~
25 fragments: ~
26 http_method_override: true
27
28 # Twig Configuration
29 twig:
30 debug: "%kernel.debug%"
31 strict_variables: "%kernel.debug%"
32 globals:
33 share_twitter: %share_twitter%
34 share_mail: %share_mail%
35 share_shaarli: %share_shaarli%
36 shaarli_url: %shaarli_url%
37 share_diaspora: %share_diaspora%
38 diaspora_url: %diaspora_url%
39 flattr: %flattr%
40 flattrable: 1
41 flattred: 2
42 carrot: %carrot%
43 show_printlink: %show_printlink%
44 export_epub: %export_epub%
45 export_mobi: %export_mobi%
46 export_pdf: %export_pdf%
47 version: %app.version%
48 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
49 flattr_url: "https://flattr.com/thing/1265480"
50 form:
51 resources:
52 - LexikFormFilterBundle:Form:form_div_layout.html.twig
53 # Assetic Configuration
54 assetic:
55 debug: "%kernel.debug%"
56 use_controller: false
57 bundles: [ ]
58 #java: /usr/bin/java
59 filters:
60 cssrewrite: ~
61 #closure:
62 # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
63 #yui_css:
64 # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
65
66 # Doctrine Configuration
67 doctrine:
68 dbal:
69 driver: "%database_driver%"
70 host: "%database_host%"
71 port: "%database_port%"
72 dbname: "%database_name%"
73 user: "%database_user%"
74 password: "%database_password%"
75 charset: UTF8
76 path: "%database_path%"
77
78 orm:
79 auto_generate_proxy_classes: "%kernel.debug%"
80 entity_managers:
81 default:
82 naming_strategy: wallabag_core.doctrine.prefixed_naming_strategy
83 auto_mapping: true
84
85 # Swiftmailer Configuration
86 swiftmailer:
87 transport: "%mailer_transport%"
88 host: "%mailer_host%"
89 username: "%mailer_user%"
90 password: "%mailer_password%"
91 spool: { type: memory }
92
93 fos_rest:
94 param_fetcher_listener: true
95 body_listener: true
96 format_listener: true
97 view:
98 view_response_listener: 'force'
99 formats:
100 xml: true
101 json : true
102 templating_formats:
103 html: true
104 force_redirects:
105 html: true
106 failed_validation: HTTP_BAD_REQUEST
107 default_engine: twig
108 routing_loader:
109 default_format: json
110
111 nelmio_api_doc: ~
112
113 nelmio_cors:
114 defaults:
115 allow_credentials: false
116 allow_origin: []
117 allow_headers: []
118 allow_methods: []
119 expose_headers: []
120 max_age: 0
121 hosts: []
122 #origin_regex: false
123 paths:
124 '^/api/':
125 allow_origin: ['*']
126 allow_headers: ['X-Custom-Auth']
127 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
128 max_age: 3600
129 '^/':
130 #origin_regex: true
131 allow_origin: ['^http://localhost:[0-9]+']
132 allow_headers: ['X-Custom-Auth']
133 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
134 max_age: 3600
135 hosts: ['^api\.']
136
137 liip_theme:
138 load_controllers: false
139 themes:
140 - baggy
141 - material
142 autodetect_theme: wallabag_core.helper.detect_active_theme
143
144 path_patterns:
145 # app_resource:
146 # - %%app_path%%/views/themes/%%current_theme%%/%%template%%
147 # - %%app_path%%/views/%%template%%
148 bundle_resource:
149 - %%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%
150 # bundle_resource_dir:
151 # - %%dir%%/views/themes/%%current_theme%%/%%bundle_name%%/%%template%%
152 # - %%dir%%/views/%%bundle_name%%/%%override_path%%