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