]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
8e9369c2286691268874a04fc02be86d811e7bf3
[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:
63 resources:
64 - LexikFormFilterBundle:Form:form_div_layout.html.twig
65
66 # Assetic Configuration
67 assetic:
68 debug: "%kernel.debug%"
69 use_controller: false
70 bundles: [ ]
71 #java: /usr/bin/java
72 filters:
73 cssrewrite: ~
74 #closure:
75 # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
76 #yui_css:
77 # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
78
79 # Doctrine Configuration
80 doctrine:
81 dbal:
82 driver: "%database_driver%"
83 host: "%database_host%"
84 port: "%database_port%"
85 dbname: "%database_name%"
86 user: "%database_user%"
87 password: "%database_password%"
88 charset: UTF8
89 path: "%database_path%"
90
91 orm:
92 auto_generate_proxy_classes: "%kernel.debug%"
93 entity_managers:
94 default:
95 auto_mapping: true
96
97 stof_doctrine_extensions:
98 default_locale: "%locale%"
99 translation_fallback: true
100 orm:
101 default:
102 tree: true
103 sluggable: true
104
105 doctrine_migrations:
106 dir_name: "%kernel.root_dir%/DoctrineMigrations"
107 namespace: Application\Migrations
108 table_name: migration_versions
109 name: Application Migrations
110
111 # Swiftmailer Configuration
112 swiftmailer:
113 transport: "%mailer_transport%"
114 host: "%mailer_host%"
115 username: "%mailer_user%"
116 password: "%mailer_password%"
117 spool: { type: memory }
118
119 fos_rest:
120 param_fetcher_listener: true
121 body_listener: true
122 format_listener: true
123 view:
124 view_response_listener: 'force'
125 formats:
126 xml: true
127 json : true
128 templating_formats:
129 html: true
130 force_redirects:
131 html: true
132 failed_validation: HTTP_BAD_REQUEST
133 default_engine: twig
134 routing_loader:
135 default_format: json
136
137 nelmio_api_doc:
138 sandbox:
139 enabled: false
140 name: wallabag API documentation
141
142 nelmio_cors:
143 defaults:
144 allow_credentials: false
145 allow_origin: []
146 allow_headers: []
147 allow_methods: []
148 expose_headers: []
149 max_age: 0
150 hosts: []
151 #origin_regex: false
152 paths:
153 '^/api/':
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\.']
165
166 liip_theme:
167 load_controllers: false
168 themes:
169 - baggy
170 - material
171 autodetect_theme: wallabag_core.helper.detect_active_theme
172
173 path_patterns:
174 # app_resource:
175 # - %%app_path%%/views/themes/%%current_theme%%/%%template%%
176 # - %%app_path%%/views/%%template%%
177 bundle_resource:
178 - %%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%
179 # bundle_resource_dir:
180 # - %%dir%%/views/themes/%%current_theme%%/%%bundle_name%%/%%template%%
181 # - %%dir%%/views/%%bundle_name%%/%%override_path%%
182
183 fos_user:
184 db_driver: orm
185 firewall_name: main
186 user_class: Wallabag\UserBundle\Entity\User
187 registration:
188 confirmation:
189 enabled: true
190
191 fos_oauth_server:
192 db_driver: orm
193 client_class: Wallabag\ApiBundle\Entity\Client
194 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
195 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
196 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
197 service:
198 user_provider: fos_user.user_manager
199
200 scheb_two_factor:
201 trusted_computer:
202 enabled: true
203 cookie_name: wllbg_trusted_computer
204 cookie_lifetime: 2592000
205
206 email:
207 enabled: %twofactor_auth%
208 sender_email: %twofactor_sender%
209 digits: 6
210 template: WallabagUserBundle:Authentication:form.html.twig
211 mailer: wallabag_user.auth_code_mailer
212
213 kphoen_rulerz:
214 executors:
215 doctrine: true