add s3 and local dir support, fix session roles, make sure delete invite checks if its valid first
This commit is contained in:
parent
9a91f1e7e3
commit
774c8e22ce
11 changed files with 171 additions and 12 deletions
|
@ -1,3 +1,5 @@
|
|||
import { resolve } from "path";
|
||||
|
||||
export const environment: Environment = {
|
||||
port: parseInt(process.env.PORT || "8080", 10),
|
||||
host: process.env.HOST || "0.0.0.0",
|
||||
|
@ -25,3 +27,11 @@ export const jwt: {
|
|||
secret: process.env.JWT_SECRET || "",
|
||||
expiresIn: process.env.JWT_EXPIRES || "1d",
|
||||
};
|
||||
|
||||
export const dataType: { type: string; path: string | undefined } = {
|
||||
type: process.env.DATASOURCE_TYPE || "local",
|
||||
path:
|
||||
process.env.DATASOURCE_TYPE === "local"
|
||||
? resolve(process.env.DATASOURCE_LOCAL_DIRECTORY || "./uploads")
|
||||
: undefined,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue