create-headless-lms 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/env.tmpl +1 -1
- package/templates/src/config.ts +2 -4
package/package.json
CHANGED
package/templates/env.tmpl
CHANGED
|
@@ -9,7 +9,7 @@ DATABASE_URL={{DATABASE_URL}}
|
|
|
9
9
|
BETTER_AUTH_SECRET={{BETTER_AUTH_SECRET}}
|
|
10
10
|
CREDENTIAL_STORE_KEY={{CREDENTIAL_STORE_KEY}}
|
|
11
11
|
|
|
12
|
-
DELIVERY_URL_EXPIRY=
|
|
12
|
+
DELIVERY_URL_EXPIRY=21600
|
|
13
13
|
MEMBER_IMAGE_MAX_BYTES=10485760
|
|
14
14
|
MEMBER_FILE_MAX_BYTES=104857600
|
|
15
15
|
REQUEST_LOGGING=true
|
package/templates/src/config.ts
CHANGED
|
@@ -20,7 +20,6 @@ export function loadStorageConfig(): MinioStorageConfig | undefined {
|
|
|
20
20
|
bucket: process.env.STORAGE_BUCKET ?? "headless-lms",
|
|
21
21
|
...(process.env.STORAGE_PUBLIC_URL ? { publicUrl: process.env.STORAGE_PUBLIC_URL } : {}),
|
|
22
22
|
uploadExpirySeconds: Number(process.env.STORAGE_UPLOAD_EXPIRY ?? 300),
|
|
23
|
-
downloadExpirySeconds: Number(process.env.STORAGE_DOWNLOAD_EXPIRY ?? 86400),
|
|
24
23
|
};
|
|
25
24
|
}
|
|
26
25
|
|
|
@@ -99,9 +98,8 @@ export function loadServerConfig(): ServerConfig {
|
|
|
99
98
|
// can never drift from what better-auth is configured with.
|
|
100
99
|
publicUrl: container.authBaseURL,
|
|
101
100
|
clientOrigins: parseClientOrigins(),
|
|
102
|
-
//
|
|
103
|
-
|
|
104
|
-
deliveryExpirySeconds: Number(process.env.DELIVERY_URL_EXPIRY ?? 86400),
|
|
101
|
+
// A file link is the same all through its window and lives one to two windows.
|
|
102
|
+
deliveryWindowSeconds: Number(process.env.DELIVERY_URL_EXPIRY ?? 21600),
|
|
105
103
|
memberImageMaxBytes: parseMemberImageMaxBytes(),
|
|
106
104
|
memberFileMaxBytes: parseMemberFileMaxBytes(),
|
|
107
105
|
// LISTEN needs a session connection; behind a transaction-mode pooler
|