]>
Commit | Line | Data |
---|---|---|
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 | wallabag_core: | |
29 | languages: | |
30 | en: 'English' | |
31 | fr: 'Français' | |
32 | ||
33 | # Twig Configuration | |
34 | twig: | |
35 | debug: "%kernel.debug%" | |
36 | strict_variables: "%kernel.debug%" | |
37 | globals: | |
38 | share_twitter: %share_twitter% | |
39 | share_mail: %share_mail% | |
40 | share_shaarli: %share_shaarli% | |
41 | shaarli_url: %shaarli_url% | |
42 | share_diaspora: %share_diaspora% | |
43 | diaspora_url: %diaspora_url% | |
44 | flattr: %flattr% | |
45 | flattrable: 1 | |
46 | flattred: 2 | |
47 | carrot: %carrot% | |
48 | show_printlink: %show_printlink% | |
49 | export_epub: %export_epub% | |
50 | export_mobi: %export_mobi% | |
51 | export_pdf: %export_pdf% | |
52 | version: %app.version% | |
53 | twofactor_auth: %twofactor_auth% | |
54 | warning_message: %warning_message% | |
55 | paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb" | |
56 | flattr_url: "https://flattr.com/thing/1265480" | |
57 | form: | |
58 | resources: | |
59 | - LexikFormFilterBundle:Form:form_div_layout.html.twig | |
60 | ||
61 | # Assetic Configuration | |
62 | assetic: | |
63 | debug: "%kernel.debug%" | |
64 | use_controller: false | |
65 | bundles: [ ] | |
66 | #java: /usr/bin/java | |
67 | filters: | |
68 | cssrewrite: ~ | |
69 | #closure: | |
70 | # jar: "%kernel.root_dir%/Resources/java/compiler.jar" | |
71 | #yui_css: | |
72 | # jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar" | |
73 | ||
74 | # Doctrine Configuration | |
75 | doctrine: | |
76 | dbal: | |
77 | driver: "%database_driver%" | |
78 | host: "%database_host%" | |
79 | port: "%database_port%" | |
80 | dbname: "%database_name%" | |
81 | user: "%database_user%" | |
82 | password: "%database_password%" | |
83 | charset: UTF8 | |
84 | path: "%database_path%" | |
85 | ||
86 | orm: | |
87 | auto_generate_proxy_classes: "%kernel.debug%" | |
88 | entity_managers: | |
89 | default: | |
90 | naming_strategy: wallabag_core.doctrine.prefixed_naming_strategy | |
91 | auto_mapping: true | |
92 | ||
93 | # Swiftmailer Configuration | |
94 | swiftmailer: | |
95 | transport: "%mailer_transport%" | |
96 | host: "%mailer_host%" | |
97 | username: "%mailer_user%" | |
98 | password: "%mailer_password%" | |
99 | spool: { type: memory } | |
100 | ||
101 | fos_rest: | |
102 | param_fetcher_listener: true | |
103 | body_listener: true | |
104 | format_listener: true | |
105 | view: | |
106 | view_response_listener: 'force' | |
107 | formats: | |
108 | xml: true | |
109 | json : true | |
110 | templating_formats: | |
111 | html: true | |
112 | force_redirects: | |
113 | html: true | |
114 | failed_validation: HTTP_BAD_REQUEST | |
115 | default_engine: twig | |
116 | routing_loader: | |
117 | default_format: json | |
118 | ||
119 | nelmio_api_doc: | |
120 | sandbox: | |
121 | enabled: false | |
122 | ||
123 | nelmio_cors: | |
124 | defaults: | |
125 | allow_credentials: false | |
126 | allow_origin: [] | |
127 | allow_headers: [] | |
128 | allow_methods: [] | |
129 | expose_headers: [] | |
130 | max_age: 0 | |
131 | hosts: [] | |
132 | #origin_regex: false | |
133 | paths: | |
134 | '^/api/': | |
135 | allow_origin: ['*'] | |
136 | allow_headers: ['X-Custom-Auth'] | |
137 | allow_methods: ['POST', 'PUT', 'GET', 'DELETE'] | |
138 | max_age: 3600 | |
139 | '^/': | |
140 | #origin_regex: true | |
141 | allow_origin: ['^http://localhost:[0-9]+'] | |
142 | allow_headers: ['X-Custom-Auth'] | |
143 | allow_methods: ['POST', 'PUT', 'GET', 'DELETE'] | |
144 | max_age: 3600 | |
145 | hosts: ['^api\.'] | |
146 | ||
147 | liip_theme: | |
148 | load_controllers: false | |
149 | themes: | |
150 | - baggy | |
151 | - material | |
152 | autodetect_theme: wallabag_core.helper.detect_active_theme | |
153 | ||
154 | path_patterns: | |
155 | # app_resource: | |
156 | # - %%app_path%%/views/themes/%%current_theme%%/%%template%% | |
157 | # - %%app_path%%/views/%%template%% | |
158 | bundle_resource: | |
159 | - %%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%% | |
160 | # bundle_resource_dir: | |
161 | # - %%dir%%/views/themes/%%current_theme%%/%%bundle_name%%/%%template%% | |
162 | # - %%dir%%/views/%%bundle_name%%/%%override_path%% | |
163 | ||
164 | fos_user: | |
165 | db_driver: orm | |
166 | firewall_name: main | |
167 | user_class: Wallabag\UserBundle\Entity\User | |
168 | registration: | |
169 | confirmation: | |
170 | enabled: true | |
171 | ||
172 | fos_oauth_server: | |
173 | db_driver: orm | |
174 | client_class: Wallabag\ApiBundle\Entity\Client | |
175 | access_token_class: Wallabag\ApiBundle\Entity\AccessToken | |
176 | refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken | |
177 | auth_code_class: Wallabag\ApiBundle\Entity\AuthCode | |
178 | service: | |
179 | user_provider: fos_user.user_manager | |
180 | ||
181 | scheb_two_factor: | |
182 | trusted_computer: | |
183 | enabled: true | |
184 | cookie_name: wllbg_trusted_computer | |
185 | cookie_lifetime: 2592000 | |
186 | ||
187 | email: | |
188 | enabled: %twofactor_auth% | |
189 | sender_email: %twofactor_sender% | |
190 | digits: 6 | |
191 | template: WallabagUserBundle:Authentication:form.html.twig |