-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
81 lines (63 loc) · 1.83 KB
/
config.toml
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
79
80
# Default application config
# Url to database
db_url = "store.db"
# Testing mode: copy files from input to element pool instead of deleting
testing_mode = true
# If true, files in input_folder will be scanned periodically
# Otherwise, import can be triggered manually in dashboard
auto_scan_files = false
# Set max log level
# - off
# - error
# - warn
# - info
# - debug
# - trace
log_level = "info"
# IP address to bind server to
bind_address = "127.0.0.1"
# Server port
port = 8080
# File to write logs
log_file = "log.txt"
# Directory that will be scanned to find new element files
input_folder = "input"
# How to read files:
# - sequential: use one thread,
# - parallel: use multiple threads.
# With `parallel` performance may suffer when reading from HDD
read_files = "sequential"
# Max number of files stored in memory at the same time.
# Files data are read first to memory, then hashed and freed.
# Bigger values can speed up file scanning, but may use more memory.
max_files_in_memory = 64
# Path to ffmpeg.
# Required to generate thumbnails for animation
# ffmpeg_path = "ffmpeg"
# If specified, pixiv metadata fetcher will work for appropriate images
# [pixiv_credentials]
# # Pixiv refresh token
# refresh_token = "PUT YOUR REFRESH TOKEN"
# # Pixiv client id
# client_id = "PUT YOUR CLIENT ID"
# # Pixiv client secret
# client_secret = "PUT YOUR CLIENT SECRET"
# Directory where renamed element files will be placed
[element_pool]
# URLs must include trailing and leading slashes
url = "/pool/"
# Path to physical folder
path = "pool"
# Serve from nndb
serve = true
# Store and serve thumbnails from this folder
[thumbnails_folder]
url = "/thumb/"
path = "thumb"
serve = true
# Folder with static frontend files
[static_folder]
# Url of this folder need to be in sync with frontend public url option
url = "/"
path = "static"
serve = true