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