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