Skip to content

Commit 161c062

Browse files
authored
🐛 Fix for objects in config files (#4688)
* fix for objects in config * md * linter
1 parent 009a3df commit 161c062

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

packages/sync-server/src/load-config.js

+2-11
Original file line numberDiff line numberDiff line change
@@ -130,33 +130,24 @@ const configSchema = convict({
130130

131131
https: {
132132
doc: 'HTTPS configuration.',
133-
format: Object,
134-
default: {
135-
key: '',
136-
cert: '',
137-
},
138133

139134
key: {
140135
doc: 'HTTPS Certificate key',
141136
format: String,
142137
default: '',
138+
env: 'ACTUAL_HTTPS_KEY',
143139
},
144140

145141
cert: {
146142
doc: 'HTTPS Certificate',
147143
format: String,
148144
default: '',
145+
env: 'ACTUAL_HTTPS_CERT',
149146
},
150147
},
151148

152149
upload: {
153150
doc: 'Upload configuration.',
154-
format: Object,
155-
default: {
156-
fileSizeSyncLimitMB: 20,
157-
syncEncryptedFileSizeLimitMB: 50,
158-
fileSizeLimitMB: 20,
159-
},
160151

161152
fileSizeSyncLimitMB: {
162153
doc: 'Sync file size limit (in MB)',

upcoming-release-notes/4688.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
category: Bugfix
3+
authors: [lelemm]
4+
---
5+
6+
Fix for objects in config file

0 commit comments

Comments
 (0)