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