48 lines
1.6 KiB
Plaintext
48 lines
1.6 KiB
Plaintext
{
|
|
// The port to listen on.
|
|
listenOn: 8083,
|
|
|
|
// How to connect to the postgres server to store the data for the application.
|
|
connection: {
|
|
host: "localhost",
|
|
port: 5432,
|
|
user: "massivedecks",
|
|
database: "massivedecks",
|
|
password: "massivedecks",
|
|
keepAlive: false,
|
|
},
|
|
|
|
auth: {
|
|
// This is how we
|
|
local: {
|
|
// A unqiue ID for this server. Changing this will sign out every user.
|
|
issuer: "CHANGE ME",
|
|
// A secret for generating tokens.
|
|
secret: "CHANGE ME",
|
|
// The algorithm used for tokens.
|
|
algorithm: "HS256",
|
|
// If you want to support older algorithms so users don't get kicked off when you change the active algorithm.
|
|
historicAlgorithms: [],
|
|
// How long a user stays signed in for.
|
|
expiresIn: "3h",
|
|
},
|
|
|
|
// If defined, Allows a user to sign into a guest account without any authorization. This is intended for development.
|
|
guest: {},
|
|
|
|
// Allows a user to sign in via Google Sign-In for Websites.
|
|
// See https://developers.google.com/identity/sign-in/web to obtain these details.
|
|
// google: {
|
|
// id: "CHANGE ME", // A client id in the form "YOUR_CLIENT_ID.apps.googleusercontent.com" (include the latter part).
|
|
// },
|
|
|
|
// Allows a user ot sign in via Twitch.
|
|
// See https://dev.twitch.tv/docs/authentication#registration to obtain these details.
|
|
// Note you need to use https://many.decks.url/sign-in/ (replacing with a real URL) as the Redirect URL.
|
|
// twitch: {
|
|
// jwk: "https://id.twitch.tv/oauth2/keys",
|
|
// id: "CHANGE ME",
|
|
// },
|
|
},
|
|
}
|