mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
feat: proper timeout and order of operations
This commit is contained in:
@@ -7,9 +7,7 @@ const envSchema = type({
|
||||
}).pipe((s) => ({
|
||||
__prod__: s.NODE_ENV === "production",
|
||||
environment: s.NODE_ENV,
|
||||
dbFileName: "/data/ironmount.db",
|
||||
volumeRootHost: s.VOLUME_ROOT,
|
||||
volumeRootContainer: "/mounts",
|
||||
}));
|
||||
|
||||
const parseConfig = (env: unknown) => {
|
||||
|
||||
3
apps/server/src/core/constants.ts
Normal file
3
apps/server/src/core/constants.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const OPERATION_TIMEOUT = 5000;
|
||||
export const VOLUME_MOUNT_BASE = "/mounts";
|
||||
export const DATABASE_URL = "/data/ironmount.db";
|
||||
Reference in New Issue
Block a user