mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-12-23 05:29:58 +05:30
i hope this works
This commit is contained in:
parent
2632b2fd2b
commit
481fc2bc3f
@ -1,5 +1,8 @@
|
|||||||
AUTH_SECRET=myauthsecret # generate with https://generate-secret.vercel.app/32 or openssl rand -hex 32 on unix-like
|
AUTH_SECRET=myauthsecret # generate with https://generate-secret.vercel.app/32 or openssl rand -hex 32 on unix-like
|
||||||
DB_URL=postgres://user:pass@localhost:5432/website
|
DB_HOST=localhost
|
||||||
|
DB_PORT=5432
|
||||||
|
DB_USERNAME=postgres
|
||||||
|
DB_PASSWORD=your-db-password
|
||||||
AUTH_CLIENT_ID=your-authentik-client-id
|
AUTH_CLIENT_ID=your-authentik-client-id
|
||||||
AUTH_CLIENT_SECRET=your-authentik-client-secret
|
AUTH_CLIENT_SECRET=your-authentik-client-secret
|
||||||
AUTH_ISSUER=https://authentik-domain/application/o/app-name/
|
AUTH_ISSUER=https://authentik-domain/application/o/app-name/
|
||||||
|
@ -2,8 +2,13 @@ import { Sequelize, DataTypes } from "sequelize";
|
|||||||
import consola from "consola";
|
import consola from "consola";
|
||||||
import { env } from "$env/dynamic/private";
|
import { env } from "$env/dynamic/private";
|
||||||
|
|
||||||
const sequelize = new Sequelize(env.DB_URL, {
|
const sequelize = new Sequelize({
|
||||||
dialect: "postgres"
|
database: "website",
|
||||||
|
password: String(env.DB_PASSWORD),
|
||||||
|
port: Number(env.DB_PORT),
|
||||||
|
host: String(env.DB_HOST),
|
||||||
|
dialect: "postgres",
|
||||||
|
username: String(env.DB_USERNAME),
|
||||||
});
|
});
|
||||||
|
|
||||||
sequelize.define("Announcements", {
|
sequelize.define("Announcements", {
|
||||||
|
Loading…
Reference in New Issue
Block a user