Skip to content

A local-first personal finance app

🐛 Fix for objects in config files (#4688)

lelemm161c0625b121
diff --git a/packages/sync-server/src/load-config.js b/packages/sync-server/src/load-config.js
index 33871362fb..48e60dbf0f 100644
--- a/packages/sync-server/src/load-config.js
+++ b/packages/sync-server/src/load-config.js
@@ -130,33 +130,24 @@ const configSchema = convict({
https: {
doc: 'HTTPS configuration.',
- format: Object,
- default: {
- key: '',
- cert: '',
- },
key: {
doc: 'HTTPS Certificate key',
format: String,
default: '',
+ env: 'ACTUAL_HTTPS_KEY',
},
cert: {
doc: 'HTTPS Certificate',
format: String,
default: '',
+ env: 'ACTUAL_HTTPS_CERT',
},
},
upload: {
doc: 'Upload configuration.',
- format: Object,
- default: {
- fileSizeSyncLimitMB: 20,
- syncEncryptedFileSizeLimitMB: 50,
- fileSizeLimitMB: 20,
- },
fileSizeSyncLimitMB: {
doc: 'Sync file size limit (in MB)',
diff --git a/upcoming-release-notes/4688.md b/upcoming-release-notes/4688.md
new file mode 100644
index 0000000000..8a846bc464
--- /dev/null
+++ b/upcoming-release-notes/4688.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [lelemm]
+---
+
+Fix for objects in config file