settings: move reverse proxy config

This commit is contained in:
Girish Ramakrishnan
2023-08-02 19:22:53 +05:30
parent c4a8255fdd
commit c7f2a04e8c
2 changed files with 7 additions and 12 deletions

View File

@@ -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];