api.js/config-default.json

51 lines
1.2 KiB
JSON

{
"port": 3000,
"env-port": true,
"region": "",
"env-region": true,
"reload-secret": "",
"custom-icons-dir": "{dir}/json",
"serve-default-icons": true,
"index-page": "https://simplesvg.com/",
"cache": {
"timeout": 604800,
"min-refresh": 604800,
"private": false
},
"cors": {
"origins": "*",
"timeout": 86400,
"methods": "GET, OPTIONS",
"headers": "Origin, X-Requested-With, Content-Type, Accept, Accept-Encoding"
},
"sync": {
"sync-on-startup": "missing",
"sync-delay": 60,
"repeated-sync-delay": 600,
"versions": "{dir}/git-repos/versions.json",
"storage": "{dir}/git-repos",
"git": "git clone {repo} --depth 1 --no-tags {target}",
"secret": "",
"simple-svg": "git@github.com:simplesvg/icons.git",
"custom": "",
"custom-dir": "",
"rm": "rm -rf {dir}"
},
"mail": {
"active": false,
"throttle": 30,
"repeat": 180,
"from": "noreply@localhost",
"to": "noreply@localhost",
"subject": "SimpleSVG icons log",
"transport": {
"host": "smtp.ethereal.email",
"port": 587,
"secure": false,
"auth": {
"user": "username",
"pass": "password"
}
}
}
}