]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
4d04d0027897d00693b582ade379ed79e0b7c97d
[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 wallabag_core:
29 languages:
30 en: 'English'
31 fr: 'Français'
32 de: 'Deutsch'
33
34 wallabag_import:
35 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain']
36
37 # Twig Configuration
38 twig:
39 debug: "%kernel.debug%"
40 strict_variables: "%kernel.debug%"
41 globals:
42 share_twitter: %share_twitter%
43 share_mail: %share_mail%
44 share_shaarli: %share_shaarli%
45 shaarli_url: %shaarli_url%
46 share_diaspora: %share_diaspora%
47 diaspora_url: %diaspora_url%
48 flattr: %flattr%
49 flattrable: 1
50 flattred: 2
51 carrot: %carrot%
52 show_printlink: %show_printlink%
53 export_epub: %export_epub%
54 export_mobi: %export_mobi%
55 export_pdf: %export_pdf%
56 version: %app.version%
57 twofactor_auth: %twofactor_auth%
58 warning_message: %warning_message%
59 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
60 flattr_url: "https://flattr.com/thing/1265480"
61 form:
62 resources:
63 - LexikFormFilterBundle:Form:form_div_layout.html.twig
64
65 # Assetic Configuration
66 assetic:
67 debug: "%kernel.debug%"
68 use_controller: false
69 bundles: [ ]
70 #java: /usr/bin/java
71 filters:
72 cssrewrite: ~
73 #closure:
74 # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
75 #yui_css:
76 # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
77
78 # Doctrine Configuration
79 doctrine:
80 dbal:
81 driver: "%database_driver%"
82 host: "%database_host%"
83 port: "%database_port%"
84 dbname: "%database_name%"
85 user: "%database_user%"
86 password: "%database_password%"
87 charset: UTF8
88 path: "%database_path%"
89
90 orm:
91 auto_generate_proxy_classes: "%kernel.debug%"
92 entity_managers:
93 default:
94 auto_mapping: true
95
96 stof_doctrine_extensions:
97 default_locale: "%locale%"
98 translation_fallback: true
99 orm:
100 default:
101 tree: true
102 sluggable: true
103
104 # Swiftmailer Configuration
105 swiftmailer:
106 transport: "%mailer_transport%"
107 host: "%mailer_host%"
108 username: "%mailer_user%"
109 password: "%mailer_password%"
110 spool: { type: memory }
111
112 fos_rest:
113 param_fetcher_listener: true
114 body_listener: true
115 format_listener: true
116 view:
117 view_response_listener: 'force'
118 formats:
119 xml: true
120 json : true
121 templating_formats:
122 html: true
123 force_redirects:
124 html: true
125 failed_validation: HTTP_BAD_REQUEST
126 default_engine: twig
127 routing_loader:
128 default_format: json
129
130 nelmio_api_doc:
131 sandbox:
132 enabled: false
133 name: wallabag API documentation
134
135 nelmio_cors:
136 defaults:
137 allow_credentials: false
138 allow_origin: []
139 allow_headers: []
140 allow_methods: []
141 expose_headers: []
142 max_age: 0
143 hosts: []
144 #origin_regex: false
145 paths:
146 '^/api/':
147 allow_origin: ['*']
148 allow_headers: ['X-Custom-Auth']
149 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
150 max_age: 3600
151 '^/':
152 #origin_regex: true
153 allow_origin: ['^http://localhost:[0-9]+']
154 allow_headers: ['X-Custom-Auth']
155 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
156 max_age: 3600
157 hosts: ['^api\.']
158
159 liip_theme:
160 load_controllers: false
161 themes:
162 - baggy
163 - material
164 autodetect_theme: wallabag_core.helper.detect_active_theme
165
166 path_patterns:
167 # app_resource:
168 # - %%app_path%%/views/themes/%%current_theme%%/%%template%%
169 # - %%app_path%%/views/%%template%%
170 bundle_resource:
171 - %%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%
172 # bundle_resource_dir:
173 # - %%dir%%/views/themes/%%current_theme%%/%%bundle_name%%/%%template%%
174 # - %%dir%%/views/%%bundle_name%%/%%override_path%%
175
176 fos_user:
177 db_driver: orm
178 firewall_name: main
179 user_class: Wallabag\UserBundle\Entity\User
180 registration:
181 confirmation:
182 enabled: true
183
184 fos_oauth_server:
185 db_driver: orm
186 client_class: Wallabag\ApiBundle\Entity\Client
187 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
188 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
189 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
190 service:
191 user_provider: fos_user.user_manager
192
193 scheb_two_factor:
194 trusted_computer:
195 enabled: true
196 cookie_name: wllbg_trusted_computer
197 cookie_lifetime: 2592000
198
199 email:
200 enabled: %twofactor_auth%
201 sender_email: %twofactor_sender%
202 digits: 6
203 template: WallabagUserBundle:Authentication:form.html.twig
204 mailer: wallabag_user.auth_code_mailer
205
206 kphoen_rulerz:
207 executors:
208 doctrine: true