settings: move reverse proxy config
This commit is contained in:
@@ -22,8 +22,6 @@ exports = module.exports = {
|
||||
getIPv6Config,
|
||||
setIPv6Config,
|
||||
|
||||
getReverseProxyConfig, // no setter yet since we have no UI for this
|
||||
|
||||
getUnstableAppsConfig,
|
||||
setUnstableAppsConfig,
|
||||
|
||||
@@ -200,9 +198,6 @@ const gDefaults = (function () {
|
||||
retention: { keepWithinSecs: 2 * 24 * 60 * 60 }, // 2 days
|
||||
schedule: '00 00 23 * * *' // every day at 11pm
|
||||
};
|
||||
result[exports.REVERSE_PROXY_CONFIG_KEY] = {
|
||||
ocsp: true
|
||||
};
|
||||
result[exports.SERVICES_CONFIG_KEY] = {};
|
||||
result[exports.EXTERNAL_LDAP_KEY] = {
|
||||
provider: 'noop',
|
||||
@@ -629,12 +624,6 @@ async function setProfileConfig(directoryConfig) {
|
||||
notifyChange(exports.PROFILE_CONFIG_KEY, directoryConfig);
|
||||
}
|
||||
|
||||
async function getReverseProxyConfig() {
|
||||
const value = await get(exports.REVERSE_PROXY_CONFIG_KEY);
|
||||
if (value === null) return gDefaults[exports.REVERSE_PROXY_CONFIG_KEY];
|
||||
return JSON.parse(value);
|
||||
}
|
||||
|
||||
async function getAppstoreListingConfig() {
|
||||
const value = await get(exports.APPSTORE_LISTING_CONFIG_KEY);
|
||||
if (value === null) return gDefaults[exports.APPSTORE_LISTING_CONFIG_KEY];
|
||||
|
||||
Reference in New Issue
Block a user