enforced authentication for APIs, vite .env configuration for auth & jobs

This commit is contained in:
Felix Kaspar
2024-05-30 01:03:15 +02:00
parent c19bc8d07a
commit fc3e2adc82
8 changed files with 48 additions and 29 deletions

View File

@@ -1,10 +1,8 @@
import 'dotenv/config';
import { Sequelize, DataTypes } from "sequelize";
//TODO: Make this configurable
const sequelize = new Sequelize("sqlite::memory:", {
logging: process.env.SEQUELIZE_LOGGING === "True" ? console.log : false
logging: import.meta.env.VITE_SEQUELIZE_LOGGING === "True" ? console.log : false
});
import { User, AccessRule, APIKey, Password } from "../auth/user/user-model";