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