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