Skip to content

Commit d65cfde

Browse files
authored
allow complex settings for ssl via json (#20)
1 parent 5751d7a commit d65cfde

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

postgresql.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
});
210210
$('#node-config-input-ssl').typedInput({
211211
default: 'bool',
212-
types: ['bool', 'global', 'env'],
212+
types: ['bool', 'global', 'env', 'json'],
213213
typeField: $('#node-config-input-sslFieldType'),
214214
});
215215
$('#node-config-input-user').typedInput({

postgresql.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ module.exports = function (RED) {
4242
case 'num':
4343
return parseInt(value);
4444
case 'bool':
45+
case 'json':
4546
return JSON.parse(value);
4647
case 'env':
4748
return process.env[value];

0 commit comments

Comments
 (0)