]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
Merge pull request #2260 from wallabag/fix-config-fontsize
[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:
9 enabled: true
10 fallback: "%locale%"
11 secret: "%secret%"
12 router:
13 resource: "%kernel.root_dir%/config/routing.yml"
14 strict_requirements: ~
15 form: ~
16 csrf_protection: ~
17 validation:
18 enable_annotations: true
19 templating:
20 engines: ['twig']
21 default_locale: "%locale%"
22 trusted_hosts: ~
23 trusted_proxies: ~
24 session:
25 # handler_id set to null will use default session handler from php.ini
26 handler_id: session.handler.native_file
27 save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
28 fragments: ~
29 http_method_override: true
30 assets: ~
31
32 wallabag_core:
33 version: 2.0.7
34 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
35 languages:
36 en: 'English'
37 fr: 'Français'
38 de: 'Deutsch'
39 tr: 'Türkçe'
40 fa: 'فارسی'
41 ro: 'Română'
42 pl: 'Polish'
43 da: 'Dansk'
44 es: 'Español'
45 oc: 'Occitan'
46 it: 'Italiano'
47 items_on_page: 12
48 theme: material
49 language: en
50 rss_limit: 50
51 reading_speed: 1
52
53 wallabag_user:
54 registration_enabled: "%fosuser_registration%"
55
56 wallabag_import:
57 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain']
58 resource_dir: "%kernel.root_dir%/../web/uploads/import"
59
60 # Twig Configuration
61 twig:
62 debug: "%kernel.debug%"
63 strict_variables: "%kernel.debug%"
64 form_themes:
65 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
66
67 # Doctrine Configuration
68 doctrine:
69 dbal:
70 driver: "%database_driver%"
71 host: "%database_host%"
72 port: "%database_port%"
73 dbname: "%database_name%"
74 user: "%database_user%"
75 password: "%database_password%"
76 charset: UTF8
77 path: "%database_path%"
78 server_version: 5.6
79
80 orm:
81 auto_generate_proxy_classes: "%kernel.debug%"
82 entity_managers:
83 default:
84 auto_mapping: true
85
86 stof_doctrine_extensions:
87 default_locale: "%locale%"
88 translation_fallback: true
89 orm:
90 default:
91 tree: true
92 sluggable: true
93
94 doctrine_migrations:
95 dir_name: "%kernel.root_dir%/DoctrineMigrations"
96 namespace: Application\Migrations
97 table_name: migration_versions
98 name: Application Migrations
99
100 # Swiftmailer Configuration
101 swiftmailer:
102 transport: "%mailer_transport%"
103 host: "%mailer_host%"
104 username: "%mailer_user%"
105 password: "%mailer_password%"
106 spool:
107 type: memory
108
109 fos_rest:
110 param_fetcher_listener: true
111 body_listener: true
112 format_listener: true
113 view:
114 view_response_listener: 'force'
115 formats:
116 xml: true
117 json : true
118 templating_formats:
119 html: true
120 force_redirects:
121 html: true
122 failed_validation: HTTP_BAD_REQUEST
123 default_engine: twig
124 routing_loader:
125 default_format: json
126
127 nelmio_api_doc:
128 sandbox:
129 enabled: false
130 name: wallabag API documentation
131
132 nelmio_cors:
133 defaults:
134 allow_credentials: false
135 allow_origin: []
136 allow_headers: []
137 allow_methods: []
138 expose_headers: []
139 max_age: 0
140 hosts: []
141 #origin_regex: false
142 paths:
143 '^/api/':
144 allow_origin: ['*']
145 allow_headers: ['X-Custom-Auth']
146 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
147 max_age: 3600
148 '^/oauth/':
149 allow_origin: ['*']
150 allow_headers: ['X-Custom-Auth']
151 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
152 max_age: 3600
153 '^/':
154 #origin_regex: true
155 allow_origin: ['^http://localhost:[0-9]+']
156 allow_headers: ['X-Custom-Auth']
157 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
158 max_age: 3600
159 hosts: ['^api\.']
160
161 liip_theme:
162 load_controllers: false
163 themes:
164 - baggy
165 - material
166 autodetect_theme: wallabag_core.helper.detect_active_theme
167
168 path_patterns:
169 bundle_resource:
170 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
171
172 fos_user:
173 db_driver: orm
174 firewall_name: secured_area
175 user_class: Wallabag\UserBundle\Entity\User
176 registration:
177 confirmation:
178 enabled: "%fosuser_confirmation%"
179 from_email:
180 address: "%from_email%"
181 sender_name: wallabag
182 fos_oauth_server:
183 db_driver: orm
184 client_class: Wallabag\ApiBundle\Entity\Client
185 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
186 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
187 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
188 service:
189 user_provider: fos_user.user_manager
190
191 scheb_two_factor:
192 trusted_computer:
193 enabled: true
194 cookie_name: wllbg_trusted_computer
195 cookie_lifetime: 2592000
196
197 email:
198 enabled: "%twofactor_auth%"
199 sender_email: "%twofactor_sender%"
200 digits: 6
201 template: WallabagUserBundle:Authentication:form.html.twig
202 mailer: wallabag_user.auth_code_mailer
203
204 kphoen_rulerz:
205 executors:
206 doctrine: true
207
208 lexik_maintenance:
209 authorized:
210 ips: ['127.0.0.1']
211 driver:
212 ttl: 3600
213 class: 'Lexik\Bundle\MaintenanceBundle\Drivers\DatabaseDriver'
214 response:
215 code: 503
216 status: "wallabag Service Temporarily Unavailable"