]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/config/config.yml
fix #1620 and introduce new parameters to export
[github/wallabag/wallabag.git] / app / config / config.yml
CommitLineData
93fd4692
NL
1imports:
2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
5
6framework:
7 #esi: ~
78cedc22 8 translator: { fallback: "%locale%" }
93fd4692
NL
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
73cd160b
JB
24 handler_id: session.handler.native_file
25 save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
93fd4692
NL
26 fragments: ~
27 http_method_override: true
d8dbe76b 28 assets: ~
93fd4692 29
c89d35e8
NL
30wallabag_core:
31 languages:
32 en: 'English'
33 fr: 'Français'
57cf6fd7 34 de: 'Deutsch'
77a7752a
JB
35
36wallabag_import:
37 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain']
b1d05721 38 resource_dir: "%kernel.root_dir%/../web/uploads/import"
c89d35e8 39
93fd4692
NL
40# Twig Configuration
41twig:
42 debug: "%kernel.debug%"
43 strict_variables: "%kernel.debug%"
bd9f0815
NL
44 globals:
45 share_twitter: %share_twitter%
46 share_mail: %share_mail%
47 share_shaarli: %share_shaarli%
48 shaarli_url: %shaarli_url%
49 share_diaspora: %share_diaspora%
50 diaspora_url: %diaspora_url%
51 flattr: %flattr%
52 flattrable: 1
53 flattred: 2
54 carrot: %carrot%
55 show_printlink: %show_printlink%
56 export_epub: %export_epub%
57 export_mobi: %export_mobi%
58 export_pdf: %export_pdf%
b89444ad
TC
59 export_csv: %export_csv%
60 export_json: %export_json%
61 export_txt: %export_txt%
62 export_xml: %export_xml%
b84a8055 63 version: %app.version%
18cf594f 64 twofactor_auth: %twofactor_auth%
fdab81e9 65 warning_message: %warning_message%
b84a8055 66 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
5c895a7f
JB
67 form_themes:
68 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
6682139e 69
93fd4692
NL
70# Assetic Configuration
71assetic:
72 debug: "%kernel.debug%"
73 use_controller: false
74 bundles: [ ]
75 #java: /usr/bin/java
76 filters:
77 cssrewrite: ~
78 #closure:
79 # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
80 #yui_css:
81 # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
82
83# Doctrine Configuration
84doctrine:
85 dbal:
86 driver: "%database_driver%"
61b9fdd5
NL
87 host: "%database_host%"
88 port: "%database_port%"
89 dbname: "%database_name%"
90 user: "%database_user%"
91 password: "%database_password%"
93fd4692 92 charset: UTF8
9d50517c 93 path: "%database_path%"
93fd4692
NL
94
95 orm:
96 auto_generate_proxy_classes: "%kernel.debug%"
164bd801
J
97 entity_managers:
98 default:
164bd801 99 auto_mapping: true
93fd4692 100
3c65dfb7
NL
101stof_doctrine_extensions:
102 default_locale: "%locale%"
103 translation_fallback: true
104 orm:
105 default:
106 tree: true
107 sluggable: true
108
292c1324
NL
109doctrine_migrations:
110 dir_name: "%kernel.root_dir%/DoctrineMigrations"
111 namespace: Application\Migrations
112 table_name: migration_versions
113 name: Application Migrations
114
93fd4692
NL
115# Swiftmailer Configuration
116swiftmailer:
117 transport: "%mailer_transport%"
118 host: "%mailer_host%"
119 username: "%mailer_user%"
120 password: "%mailer_password%"
121 spool: { type: memory }
e4788de5
NL
122
123fos_rest:
124 param_fetcher_listener: true
125 body_listener: true
126 format_listener: true
127 view:
128 view_response_listener: 'force'
129 formats:
130 xml: true
131 json : true
132 templating_formats:
133 html: true
134 force_redirects:
135 html: true
136 failed_validation: HTTP_BAD_REQUEST
137 default_engine: twig
138 routing_loader:
a65f5d55 139 default_format: json
e4788de5 140
cd1298d6
NL
141nelmio_api_doc:
142 sandbox:
143 enabled: false
3c65dfb7 144 name: wallabag API documentation
fca3c757
NL
145
146nelmio_cors:
147 defaults:
148 allow_credentials: false
149 allow_origin: []
150 allow_headers: []
151 allow_methods: []
152 expose_headers: []
153 max_age: 0
154 hosts: []
155 #origin_regex: false
156 paths:
157 '^/api/':
158 allow_origin: ['*']
159 allow_headers: ['X-Custom-Auth']
160 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
161 max_age: 3600
162 '^/':
163 #origin_regex: true
164 allow_origin: ['^http://localhost:[0-9]+']
165 allow_headers: ['X-Custom-Auth']
166 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
167 max_age: 3600
168 hosts: ['^api\.']
32da2a70
J
169
170liip_theme:
171 load_controllers: false
172 themes:
173 - baggy
9948d899 174 - material
32da2a70
J
175 autodetect_theme: wallabag_core.helper.detect_active_theme
176
177 path_patterns:
32da2a70
J
178 bundle_resource:
179 - %%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%
a1691859
NL
180
181fos_user:
182 db_driver: orm
183 firewall_name: main
1210dae1 184 user_class: Wallabag\UserBundle\Entity\User
fcb1fba5 185 registration:
fcb1fba5
NL
186 confirmation:
187 enabled: true
a40dd989
NL
188 from_email:
189 address: %from_email%
190 sender_name: wallabag
fcb1fba5
NL
191fos_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
2db616b5
NL
199
200scheb_two_factor:
2db616b5
NL
201 trusted_computer:
202 enabled: true
203 cookie_name: wllbg_trusted_computer
0d6a7929 204 cookie_lifetime: 2592000
2db616b5
NL
205
206 email:
18cf594f
NL
207 enabled: %twofactor_auth%
208 sender_email: %twofactor_sender%
2db616b5
NL
209 digits: 6
210 template: WallabagUserBundle:Authentication:form.html.twig
23ff8d36 211 mailer: wallabag_user.auth_code_mailer
625acf33
KG
212
213kphoen_rulerz:
214 executors:
215 doctrine: true