]> git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/config.yml
Store cache lifetime in config
[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 cache_lifetime: 10
53
54 wallabag_import:
55 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain']
56 resource_dir: "%kernel.root_dir%/../web/uploads/import"
57
58 # Twig Configuration
59 twig:
60 debug: "%kernel.debug%"
61 strict_variables: "%kernel.debug%"
62 form_themes:
63 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
64
65 # Doctrine Configuration
66 doctrine:
67 dbal:
68 driver: "%database_driver%"
69 host: "%database_host%"
70 port: "%database_port%"
71 dbname: "%database_name%"
72 user: "%database_user%"
73 password: "%database_password%"
74 charset: UTF8
75 path: "%database_path%"
76 server_version: 5.6
77
78 orm:
79 auto_generate_proxy_classes: "%kernel.debug%"
80 entity_managers:
81 default:
82 auto_mapping: true
83
84 stof_doctrine_extensions:
85 default_locale: "%locale%"
86 translation_fallback: true
87 orm:
88 default:
89 tree: true
90 sluggable: true
91
92 doctrine_migrations:
93 dir_name: "%kernel.root_dir%/DoctrineMigrations"
94 namespace: Application\Migrations
95 table_name: migration_versions
96 name: Application Migrations
97
98 # Swiftmailer Configuration
99 swiftmailer:
100 transport: "%mailer_transport%"
101 host: "%mailer_host%"
102 username: "%mailer_user%"
103 password: "%mailer_password%"
104 spool:
105 type: memory
106
107 fos_rest:
108 param_fetcher_listener: true
109 body_listener: true
110 format_listener: true
111 view:
112 view_response_listener: 'force'
113 formats:
114 xml: true
115 json : true
116 templating_formats:
117 html: true
118 force_redirects:
119 html: true
120 failed_validation: HTTP_BAD_REQUEST
121 default_engine: twig
122 routing_loader:
123 default_format: json
124
125 nelmio_api_doc:
126 sandbox:
127 enabled: false
128 name: wallabag API documentation
129
130 nelmio_cors:
131 defaults:
132 allow_credentials: false
133 allow_origin: []
134 allow_headers: []
135 allow_methods: []
136 expose_headers: []
137 max_age: 0
138 hosts: []
139 #origin_regex: false
140 paths:
141 '^/api/':
142 allow_origin: ['*']
143 allow_headers: ['X-Custom-Auth']
144 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
145 max_age: 3600
146 '^/oauth/':
147 allow_origin: ['*']
148 allow_headers: ['X-Custom-Auth']
149 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
150 max_age: 3600
151 '^/':
152 #origin_regex: true
153 allow_origin: ['^http://localhost:[0-9]+']
154 allow_headers: ['X-Custom-Auth']
155 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
156 max_age: 3600
157 hosts: ['^api\.']
158
159 liip_theme:
160 load_controllers: false
161 themes:
162 - baggy
163 - material
164 autodetect_theme: wallabag_core.helper.detect_active_theme
165
166 path_patterns:
167 bundle_resource:
168 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
169
170 fos_user:
171 db_driver: orm
172 firewall_name: secured_area
173 user_class: Wallabag\UserBundle\Entity\User
174 registration:
175 confirmation:
176 enabled: "%fosuser_confirmation%"
177 from_email:
178 address: "%from_email%"
179 sender_name: wallabag
180 fos_oauth_server:
181 db_driver: orm
182 client_class: Wallabag\ApiBundle\Entity\Client
183 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
184 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
185 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
186 service:
187 user_provider: fos_user.user_manager
188
189 scheb_two_factor:
190 trusted_computer:
191 enabled: true
192 cookie_name: wllbg_trusted_computer
193 cookie_lifetime: 2592000
194
195 email:
196 enabled: "%twofactor_auth%"
197 sender_email: "%twofactor_sender%"
198 digits: 6
199 template: WallabagUserBundle:Authentication:form.html.twig
200 mailer: wallabag_user.auth_code_mailer
201
202 kphoen_rulerz:
203 executors:
204 doctrine: true
205
206 lexik_maintenance:
207 authorized:
208 ips: ['127.0.0.1']
209 driver:
210 ttl: 3600
211 class: 'Lexik\Bundle\MaintenanceBundle\Drivers\DatabaseDriver'
212 response:
213 code: 503
214 status: "wallabag Service Temporarily Unavailable"