-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.yml
71 lines (68 loc) · 1.82 KB
/
default.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
server:
protocol: http
host: 0.0.0.0
port: 3000
options:
- name: logger
value: true
views:
templatesPath: ../views
layout: _layout
includeViewExtension: true
engineOptions:
async: true
htmlMinifierOptions:
removeComments: true
removeCommentsFromCDATA: true
collapseWhitespace: true
collapseBooleanAttributes: true
removeEmptyAttributes: true
minifyCSS: true
minifyJS: true
assets:
rootPath: ../public
options:
prefix: /public/
cacheControl: true
etag: true
acceptRanges: true
lastModified: true
maxAge: 86400000
##
# Configuration for file upload input inside ../views/upload.hbs
#
# - accept property is
# an array of the **template value** from https://www.iana.org/assignments/media-types/media-types.xhtml
# or */* to allow all types
#
# Configuration for API endpoint
#
# - fileEndpoint is the endpoint to upload file(s)
# - method The HTTP Method to use for the request. Only `POST` and `PUT` are allowed. Change it only if your own API wants a PUT instead of a POST
#
# Configuration for additional FormData
#
# - additionalFormData is an object to add custom data inside the FormData and send it to the server
#
# - fieldName is the key of the custom data inside the FormData
# - data is an object or a string representing the value of this custom data.
#
# This custom data will be automatically serialized before inserted inside the FormData with formData.append(fieldName,JSON.stringify(data))
##
upload:
input:
accept:
- application/pdf
- image/*
# - video/*
api:
fileEndpoint: /api/upload
method: POST
# additionalFormData:
# fieldName: myAdditionalFormData
# data:
# first: true
# second: itsAString
# third:
# key1: thirdItsAnObject1
# key2: thirdItsAnObject2