-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.json
More file actions
29 lines (25 loc) · 1.08 KB
/
Copy pathconfig.example.json
File metadata and controls
29 lines (25 loc) · 1.08 KB
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
{
// The folder to serve. Absolute, or starting with ~. Only files directly
// inside it are listed — subdirectories are not descended into.
"folder": "~/Pictures/Wallpapers",
// Bind address. ":6969" listens on every interface, which is what makes the
// server reachable from a phone on the same network. Use "127.0.0.1:6969" to
// keep it to this machine only.
"listen": ":6969",
// Where resized derivatives are kept. Empty uses a subdirectory of the system
// cache directory. It is pure cache — deleting it costs only the CPU to
// regenerate.
"cacheDir": "",
"cacheSizeMB": 2048,
// How stale a directory listing may be before the next request re-reads it.
"rescanSeconds": 30,
// Optional, and off by default. Worth setting if you reach this from a phone
// by LAN IP: Wake Lock and the Fullscreen API both require a secure context,
// and while http://localhost qualifies, http://192.168.x.x does not. Over
// plain HTTP to a LAN address the screen sleeps on its own timer and
// fullscreen is refused.
"tls": {
"cert": "",
"key": ""
}
}