]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
Update bundle & stock file
[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 resource_dir: "%kernel.root_dir%/../web/uploads/import"
37
38 # Twig Configuration
39 twig:
40 debug: "%kernel.debug%"
41 strict_variables: "%kernel.debug%"
42 globals:
43 share_twitter: %share_twitter%
44 share_mail: %share_mail%
45 share_shaarli: %share_shaarli%
46 shaarli_url: %shaarli_url%
47 share_diaspora: %share_diaspora%
48 diaspora_url: %diaspora_url%
49 flattr: %flattr%
50 flattrable: 1
51 flattred: 2
52 carrot: %carrot%
53 show_printlink: %show_printlink%
54 export_epub: %export_epub%
55 export_mobi: %export_mobi%
56 export_pdf: %export_pdf%
57 version: %app.version%
58 twofactor_auth: %twofactor_auth%
59 warning_message: %warning_message%
60 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
61 flattr_url: "https://flattr.com/thing/1265480"
62 form_themes:
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 doctrine_migrations:
105 dir_name: "%kernel.root_dir%/DoctrineMigrations"
106 namespace: Application\Migrations
107 table_name: migration_versions
108 name: Application Migrations
109
110 # Swiftmailer Configuration
111 swiftmailer:
112 transport: "%mailer_transport%"
113 host: "%mailer_host%"
114 username: "%mailer_user%"
115 password: "%mailer_password%"
116 spool: { type: memory }
117
118 fos_rest:
119 param_fetcher_listener: true
120 body_listener: true
121 format_listener: true
122 view:
123 view_response_listener: 'force'
124 formats:
125 xml: true
126 json : true
127 templating_formats:
128 html: true
129 force_redirects:
130 html: true
131 failed_validation: HTTP_BAD_REQUEST
132 default_engine: twig
133 routing_loader:
134 default_format: json
135
136 nelmio_api_doc:
137 sandbox:
138 enabled: false
139 name: wallabag API documentation
140
141 nelmio_cors:
142 defaults:
143 allow_credentials: false
144 allow_origin: []
145 allow_headers: []
146 allow_methods: []
147 expose_headers: []
148 max_age: 0
149 hosts: []
150 #origin_regex: false
151 paths:
152 '^/api/':
153 allow_origin: ['*']
154 allow_headers: ['X-Custom-Auth']
155 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
156 max_age: 3600
157 '^/':
158 #origin_regex: true
159 allow_origin: ['^http://localhost:[0-9]+']
160 allow_headers: ['X-Custom-Auth']
161 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
162 max_age: 3600
163 hosts: ['^api\.']
164
165 liip_theme:
166 load_controllers: false
167 themes:
168 - baggy
169 - material
170 autodetect_theme: wallabag_core.helper.detect_active_theme
171
172 path_patterns:
173 # app_resource:
174 # - %%app_path%%/views/themes/%%current_theme%%/%%template%%
175 # - %%app_path%%/views/%%template%%
176 bundle_resource:
177 - %%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%
178 # bundle_resource_dir:
179 # - %%dir%%/views/themes/%%current_theme%%/%%bundle_name%%/%%template%%
180 # - %%dir%%/views/%%bundle_name%%/%%override_path%%
181
182 fos_user:
183 db_driver: orm
184 firewall_name: main
185 user_class: Wallabag\UserBundle\Entity\User
186 registration:
187 confirmation:
188 enabled: true
189
190 fos_oauth_server:
191 db_driver: orm
192 client_class: Wallabag\ApiBundle\Entity\Client
193 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
194 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
195 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
196 service:
197 user_provider: fos_user.user_manager
198
199 scheb_two_factor:
200 trusted_computer:
201 enabled: true
202 cookie_name: wllbg_trusted_computer
203 cookie_lifetime: 2592000
204
205 email:
206 enabled: %twofactor_auth%
207 sender_email: %twofactor_sender%
208 digits: 6
209 template: WallabagUserBundle:Authentication:form.html.twig
210 mailer: wallabag_user.auth_code_mailer
211
212 kphoen_rulerz:
213 executors:
214 doctrine: true