]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/config/config.yml
Rewrote Pocket Import
[github/wallabag/wallabag.git] / app / config / config.yml
CommitLineData
93fd4692
NL
1imports:
2 - { resource: parameters.yml }
3 - { resource: security.yml }
4 - { resource: services.yml }
5
6framework:
7 #esi: ~
78cedc22 8 translator: { fallback: "%locale%" }
93fd4692
NL
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
c89d35e8
NL
28wallabag_core:
29 languages:
30 en: 'English'
31 fr: 'Français'
57cf6fd7 32 de: 'Deutsch'
77a7752a
JB
33
34wallabag_import:
35 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain']
c89d35e8 36
93fd4692
NL
37# Twig Configuration
38twig:
39 debug: "%kernel.debug%"
40 strict_variables: "%kernel.debug%"
bd9f0815
NL
41 globals:
42 share_twitter: %share_twitter%
43 share_mail: %share_mail%
44 share_shaarli: %share_shaarli%
45 shaarli_url: %shaarli_url%
46 share_diaspora: %share_diaspora%
47 diaspora_url: %diaspora_url%
48 flattr: %flattr%
49 flattrable: 1
50 flattred: 2
51 carrot: %carrot%
52 show_printlink: %show_printlink%
53 export_epub: %export_epub%
54 export_mobi: %export_mobi%
55 export_pdf: %export_pdf%
b84a8055 56 version: %app.version%
18cf594f 57 twofactor_auth: %twofactor_auth%
fdab81e9 58 warning_message: %warning_message%
b84a8055
NL
59 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
60 flattr_url: "https://flattr.com/thing/1265480"
26864574
NL
61 form:
62 resources:
63 - LexikFormFilterBundle:Form:form_div_layout.html.twig
6682139e 64
93fd4692
NL
65# Assetic Configuration
66assetic:
67 debug: "%kernel.debug%"
68 use_controller: false
69 bundles: [ ]
70 #java: /usr/bin/java
71 filters:
72 cssrewrite: ~
73 #closure:
74 # jar: "%kernel.root_dir%/Resources/java/compiler.jar"
75 #yui_css:
76 # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
77
78# Doctrine Configuration
79doctrine:
80 dbal:
81 driver: "%database_driver%"
61b9fdd5
NL
82 host: "%database_host%"
83 port: "%database_port%"
84 dbname: "%database_name%"
85 user: "%database_user%"
86 password: "%database_password%"
93fd4692 87 charset: UTF8
9d50517c 88 path: "%database_path%"
93fd4692
NL
89
90 orm:
91 auto_generate_proxy_classes: "%kernel.debug%"
164bd801
J
92 entity_managers:
93 default:
164bd801 94 auto_mapping: true
93fd4692 95
3c65dfb7
NL
96stof_doctrine_extensions:
97 default_locale: "%locale%"
98 translation_fallback: true
99 orm:
100 default:
101 tree: true
102 sluggable: true
103
93fd4692
NL
104# Swiftmailer Configuration
105swiftmailer:
106 transport: "%mailer_transport%"
107 host: "%mailer_host%"
108 username: "%mailer_user%"
109 password: "%mailer_password%"
110 spool: { type: memory }
e4788de5
NL
111
112fos_rest:
113 param_fetcher_listener: true
114 body_listener: true
115 format_listener: true
116 view:
117 view_response_listener: 'force'
118 formats:
119 xml: true
120 json : true
121 templating_formats:
122 html: true
123 force_redirects:
124 html: true
125 failed_validation: HTTP_BAD_REQUEST
126 default_engine: twig
127 routing_loader:
a65f5d55 128 default_format: json
e4788de5 129
cd1298d6
NL
130nelmio_api_doc:
131 sandbox:
132 enabled: false
3c65dfb7 133 name: wallabag API documentation
fca3c757
NL
134
135nelmio_cors:
136 defaults:
137 allow_credentials: false
138 allow_origin: []
139 allow_headers: []
140 allow_methods: []
141 expose_headers: []
142 max_age: 0
143 hosts: []
144 #origin_regex: false
145 paths:
146 '^/api/':
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\.']
32da2a70
J
158
159liip_theme:
160 load_controllers: false
161 themes:
162 - baggy
9948d899 163 - material
32da2a70
J
164 autodetect_theme: wallabag_core.helper.detect_active_theme
165
166 path_patterns:
3e30422c
J
167 # app_resource:
168 # - %%app_path%%/views/themes/%%current_theme%%/%%template%%
169 # - %%app_path%%/views/%%template%%
32da2a70
J
170 bundle_resource:
171 - %%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%
3e30422c
J
172 # bundle_resource_dir:
173 # - %%dir%%/views/themes/%%current_theme%%/%%bundle_name%%/%%template%%
174 # - %%dir%%/views/%%bundle_name%%/%%override_path%%
a1691859
NL
175
176fos_user:
177 db_driver: orm
178 firewall_name: main
1210dae1 179 user_class: Wallabag\UserBundle\Entity\User
fcb1fba5 180 registration:
fcb1fba5
NL
181 confirmation:
182 enabled: true
183
184fos_oauth_server:
185 db_driver: orm
186 client_class: Wallabag\ApiBundle\Entity\Client
187 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
188 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
189 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
190 service:
191 user_provider: fos_user.user_manager
2db616b5
NL
192
193scheb_two_factor:
2db616b5
NL
194 trusted_computer:
195 enabled: true
196 cookie_name: wllbg_trusted_computer
0d6a7929 197 cookie_lifetime: 2592000
2db616b5
NL
198
199 email:
18cf594f
NL
200 enabled: %twofactor_auth%
201 sender_email: %twofactor_sender%
2db616b5
NL
202 digits: 6
203 template: WallabagUserBundle:Authentication:form.html.twig
23ff8d36 204 mailer: wallabag_user.auth_code_mailer
625acf33
KG
205
206kphoen_rulerz:
207 executors:
208 doctrine: true