mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-12-22 13:09:49 +05:30
i hope this works
This commit is contained in:
parent
2632b2fd2b
commit
481fc2bc3f
@ -1,8 +1,11 @@
|
||||
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_SECRET=your-authentik-client-secret
|
||||
AUTH_ISSUER=https://authentik-domain/application/o/app-name/
|
||||
HCAPTCHA_SECRET=your-hcaptcha-secret
|
||||
HCAPTCHA_SITEKEY=your-hcaptcha-sitekey
|
||||
WEBHOOK=your-discord-webhook
|
||||
WEBHOOK=your-discord-webhook
|
@ -2,8 +2,13 @@ import { Sequelize, DataTypes } from "sequelize";
|
||||
import consola from "consola";
|
||||
import { env } from "$env/dynamic/private";
|
||||
|
||||
const sequelize = new Sequelize(env.DB_URL, {
|
||||
dialect: "postgres"
|
||||
const sequelize = new Sequelize({
|
||||
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", {
|
||||
|
Loading…
Reference in New Issue
Block a user