|
|
@@ -12,14 +12,14 @@ const supportedDBClients = [
|
|
|
|
|
|
const env = cleanEnv(process.env, {
|
|
|
PORT: num({ default: 3000 }),
|
|
|
- SITE_NAME: str({ example: "Kutt" }),
|
|
|
- DEFAULT_DOMAIN: str({ example: "kutt.it" }),
|
|
|
+ SITE_NAME: str({ example: "Kutt", default: "Kutt" }),
|
|
|
+ DEFAULT_DOMAIN: str({ example: "kutt.it", default: "localhost:3000" }),
|
|
|
LINK_LENGTH: num({ default: 6 }),
|
|
|
- DB_CLIENT: str({ choices: supportedDBClients }),
|
|
|
+ DB_CLIENT: str({ choices: supportedDBClients, default: "sqlite3" }),
|
|
|
DB_FILENAME: str({ default: "data" }),
|
|
|
DB_HOST: str({ default: "localhost" }),
|
|
|
DB_PORT: num({ default: 5432 }),
|
|
|
- DB_NAME: str({ default: "postgres" }),
|
|
|
+ DB_NAME: str({ default: "kutt" }),
|
|
|
DB_USER: str({ default: "postgres" }),
|
|
|
DB_PASSWORD: str({ default: "" }),
|
|
|
DB_SSL: bool({ default: false }),
|
|
|
@@ -30,8 +30,8 @@ const env = cleanEnv(process.env, {
|
|
|
REDIS_PORT: num({ default: 6379 }),
|
|
|
REDIS_PASSWORD: str({ default: "" }),
|
|
|
REDIS_DB: num({ default: 0 }),
|
|
|
- DISALLOW_ANONYMOUS_LINKS: bool({ default: false }),
|
|
|
- DISALLOW_REGISTRATION: bool({ default: false }),
|
|
|
+ DISALLOW_ANONYMOUS_LINKS: bool({ default: true }),
|
|
|
+ DISALLOW_REGISTRATION: bool({ default: true }),
|
|
|
SERVER_IP_ADDRESS: str({ default: "" }),
|
|
|
CUSTOM_DOMAIN_USE_HTTPS: bool({ default: false }),
|
|
|
JWT_SECRET: str(),
|