-
Notifications
You must be signed in to change notification settings - Fork 0
/
mediateq.yaml
78 lines (62 loc) · 1.97 KB
/
mediateq.yaml
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
72
73
74
75
76
77
78
version: v0 # version of mediateq
port: 8080 # port on which to run the server
# the domain name of the server.
# It should be a valid domain name (https://example.com).
# For local addresses you must append the port number when not using port 80 (http://127.0.0.1:8080)
domain: http://localhost:8080
# Configuration data of the database
database:
# The type of database engime [postgres]
type: postgres
# Database host address
host: localhost
# Database port
port: 5432
# Database name
db_name: mediateq
# Database user name
username: mediateq
# Database user password
password: mediateq
# Configuration data of the file storage
storage:
# The type of storage [localdisk: to save file on your local machine]
type: localdisk
# The relative or absolute path to the folder were files should be stored
upload_path: ./upload
# The maximum size of file to accept on the server in bytes
max_file_size_bytes: 50000000
# The list of content type allowed by the server
allowed_content_types:
- image/jpeg
- image/png
- image/bimg
- image/webp
# Use this variable to specify if the server should allow
# request to delete files
delete_allowed: false
# Whether to dynamically generate thumbnails if needed.
dynamic_thumbnails: false
# The maximum number of simultaneous thumbnail generators to run.
max_thumbnail_generators: 10
# Configure the default size for uploaded images
# to prioritize file size while preserving a sufficient
# level of quality. If the width and height are set to 0,
# the files will not be resized upon upload.
# To maintain the aspect ratio of the image, only set the width and leave the height as 0.
default_image_size:
# default image width in pixels
width: 1280
# default imamge height in pixels
height: 0
# A list of thumbnail sizes to be generated for media content.
thumbnail_sizes:
- width: 32
height: 32
crop: true
- width: 96
height: 96
crop: true
- width: 640
height: 480
crop: false