3 Example Config
dicedtomato edited this page 2020-09-17 13:44:57 -07:00
{
    "database": {
        "type": "postgres",
        "host": "localhost",
        "port": 5432,
        "username": "dicedtomato",
        "password": "1234",
        "database": "zipline",
        "synchronize": true,
        "logging": false,
        "entities": [
            "out/src/entities/**/*.js"
        ]
    },
    "uploader": {
        "length": 6,
        "temp": "./temp",
        "upload": "./uploads",
        "route": "/u",
        "blacklistedExt": []
    },
    "shortener": {
        "length": 4,
        "route": "/s"
    },
    "notes": {
        "length": 4,
        "route": "/n"
    },
    "core": {
        "secure": false,
        "log": true,
        "adminPassword": "1234",
        "sessionSecret": "1234",
        "saltRounds": "10",
        "userTokenLength": 34,
        "public": false,
        "ssl": {
            "key": "./ssl/server.key",
            "cert": "./ssl/server.crt"
        },
        "port": {
            "secure": 8000,
            "unsecure": 8000
        }
    },
    "meta": {
        "favicon": "/public/assets/zipline_small_circle.png",
        "title": "Zipline"
    },
    "discordWebhook": {
        "enabled": false,
        "url": "https://canary.discordapp.com/api/webhooks/??/??",
        "username": "Zipline Logs",
        "avatarURL": "some url"
    }
}```