Added and whitelisted default config.

This commit is contained in:
ThePendulum 2025-09-25 06:20:20 +02:00
parent 745b00dcdc
commit 3b0dcb9a8e
2 changed files with 20 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
config/* config/*
!config/default.cjs
uploads/full/* uploads/full/*
uploads/thumbs/* uploads/thumbs/*
uploads/temp/* uploads/temp/*

19
config/default.cjs Normal file
View File

@ -0,0 +1,19 @@
module.exports = {
web: {
host: 'localhost',
port: 7000,
},
database: {
client: 'sqlite3',
connection: {
filename: './db.sqlite',
},
},
uploads: {
flushTempOnStart: true,
path: './uploads',
thumbHeight: 300,
thumbQuality: 50,
allowMimetypeMismatch: false,
},
};