]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/config/config.yml
Add option to disable registration
[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: ~
2bc9cad7
JB
8 translator:
9 enabled: true
10 fallback: "%locale%"
11 secret: "%secret%"
93fd4692
NL
12 router:
13 resource: "%kernel.root_dir%/config/routing.yml"
14 strict_requirements: ~
2bc9cad7 15 form: ~
93fd4692 16 csrf_protection: ~
2bc9cad7
JB
17 validation:
18 enable_annotations: true
93fd4692
NL
19 templating:
20 engines: ['twig']
2bc9cad7
JB
21 default_locale: "%locale%"
22 trusted_hosts: ~
93fd4692
NL
23 trusted_proxies: ~
24 session:
25 # handler_id set to null will use default session handler from php.ini
2bc9cad7
JB
26 handler_id: session.handler.native_file
27 save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
28 fragments: ~
93fd4692 29 http_method_override: true
d8dbe76b 30 assets: ~
93fd4692 31
c89d35e8 32wallabag_core:
5068544e 33 version: 2.0.7
63e40f2d 34 paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
c89d35e8
NL
35 languages:
36 en: 'English'
37 fr: 'Français'
57cf6fd7 38 de: 'Deutsch'
f47101e0 39 tr: 'Türkçe'
e2b4f0e2 40 fa: 'فارسی'
d8f5b270 41 ro: 'Română'
ee40ccf2 42 pl: 'Polish'
449df236 43 da: 'Dansk'
e5f3b04c 44 es: 'Español'
187868d1 45 oc: 'Occitan'
8b09c6ed 46 it: 'Italiano'
bc789687
JB
47 items_on_page: 12
48 theme: material
49 language: en
50 rss_limit: 50
bca54859 51 reading_speed: 1
77a7752a 52
de3d716a
TC
53wallabag_user:
54 registration_enabled: "%registration_enabled%"
55
77a7752a
JB
56wallabag_import:
57 allow_mimetypes: ['application/octet-stream', 'application/json', 'text/plain']
b1d05721 58 resource_dir: "%kernel.root_dir%/../web/uploads/import"
c89d35e8 59
93fd4692
NL
60# Twig Configuration
61twig:
2bc9cad7 62 debug: "%kernel.debug%"
93fd4692 63 strict_variables: "%kernel.debug%"
5c895a7f
JB
64 form_themes:
65 - "LexikFormFilterBundle:Form:form_div_layout.html.twig"
6682139e 66
93fd4692
NL
67# Doctrine Configuration
68doctrine:
69 dbal:
2bc9cad7 70 driver: "%database_driver%"
61b9fdd5
NL
71 host: "%database_host%"
72 port: "%database_port%"
73 dbname: "%database_name%"
74 user: "%database_user%"
75 password: "%database_password%"
2bc9cad7
JB
76 charset: UTF8
77 path: "%database_path%"
69c21157 78 server_version: 5.6
93fd4692
NL
79
80 orm:
81 auto_generate_proxy_classes: "%kernel.debug%"
164bd801
J
82 entity_managers:
83 default:
164bd801 84 auto_mapping: true
93fd4692 85
3c65dfb7
NL
86stof_doctrine_extensions:
87 default_locale: "%locale%"
88 translation_fallback: true
89 orm:
90 default:
91 tree: true
92 sluggable: true
93
292c1324
NL
94doctrine_migrations:
95 dir_name: "%kernel.root_dir%/DoctrineMigrations"
96 namespace: Application\Migrations
97 table_name: migration_versions
98 name: Application Migrations
99
93fd4692
NL
100# Swiftmailer Configuration
101swiftmailer:
102 transport: "%mailer_transport%"
2bc9cad7
JB
103 host: "%mailer_host%"
104 username: "%mailer_user%"
105 password: "%mailer_password%"
106 spool:
107 type: memory
e4788de5
NL
108
109fos_rest:
110 param_fetcher_listener: true
111 body_listener: true
112 format_listener: true
113 view:
114 view_response_listener: 'force'
115 formats:
116 xml: true
117 json : true
118 templating_formats:
119 html: true
120 force_redirects:
121 html: true
122 failed_validation: HTTP_BAD_REQUEST
123 default_engine: twig
124 routing_loader:
a65f5d55 125 default_format: json
e4788de5 126
cd1298d6
NL
127nelmio_api_doc:
128 sandbox:
129 enabled: false
3c65dfb7 130 name: wallabag API documentation
fca3c757
NL
131
132nelmio_cors:
133 defaults:
134 allow_credentials: false
135 allow_origin: []
136 allow_headers: []
137 allow_methods: []
138 expose_headers: []
139 max_age: 0
140 hosts: []
141 #origin_regex: false
142 paths:
143 '^/api/':
144 allow_origin: ['*']
145 allow_headers: ['X-Custom-Auth']
41c9eecf 146 allow_methods: ['POST', 'PUT', 'PATCH','GET', 'DELETE']
fca3c757 147 max_age: 3600
848c2e1b 148 '^/oauth/':
fca3c757
NL
149 allow_origin: ['*']
150 allow_headers: ['X-Custom-Auth']
151 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
152 max_age: 3600
153 '^/':
154 #origin_regex: true
155 allow_origin: ['^http://localhost:[0-9]+']
156 allow_headers: ['X-Custom-Auth']
157 allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
158 max_age: 3600
159 hosts: ['^api\.']
32da2a70
J
160
161liip_theme:
162 load_controllers: false
163 themes:
164 - baggy
9948d899 165 - material
32da2a70
J
166 autodetect_theme: wallabag_core.helper.detect_active_theme
167
168 path_patterns:
32da2a70 169 bundle_resource:
23634d5d 170 - "%%bundle_path%%/Resources/views/themes/%%current_theme%%/%%template%%"
a1691859
NL
171
172fos_user:
173 db_driver: orm
fdc90ceb 174 firewall_name: secured_area
1210dae1 175 user_class: Wallabag\UserBundle\Entity\User
fcb1fba5 176 registration:
fcb1fba5 177 confirmation:
23634d5d 178 enabled: "%fosuser_confirmation%"
a40dd989 179 from_email:
23634d5d 180 address: "%from_email%"
a40dd989 181 sender_name: wallabag
fcb1fba5
NL
182fos_oauth_server:
183 db_driver: orm
184 client_class: Wallabag\ApiBundle\Entity\Client
185 access_token_class: Wallabag\ApiBundle\Entity\AccessToken
186 refresh_token_class: Wallabag\ApiBundle\Entity\RefreshToken
187 auth_code_class: Wallabag\ApiBundle\Entity\AuthCode
188 service:
189 user_provider: fos_user.user_manager
2db616b5
NL
190
191scheb_two_factor:
2db616b5
NL
192 trusted_computer:
193 enabled: true
194 cookie_name: wllbg_trusted_computer
0d6a7929 195 cookie_lifetime: 2592000
2db616b5
NL
196
197 email:
23634d5d
JB
198 enabled: "%twofactor_auth%"
199 sender_email: "%twofactor_sender%"
2db616b5
NL
200 digits: 6
201 template: WallabagUserBundle:Authentication:form.html.twig
23ff8d36 202 mailer: wallabag_user.auth_code_mailer
625acf33
KG
203
204kphoen_rulerz:
205 executors:
206 doctrine: true
fbbda941
NL
207
208lexik_maintenance:
209 authorized:
210 ips: ['127.0.0.1']
211 driver:
212 ttl: 3600
213 class: 'Lexik\Bundle\MaintenanceBundle\Drivers\DatabaseDriver'
214 response:
215 code: 503
216 status: "wallabag Service Temporarily Unavailable"