Remove supportConfig route

This commit is contained in:
Johannes Zellner
2023-12-03 16:24:16 +01:00
parent b9e584752b
commit 8927634636
7 changed files with 12 additions and 51 deletions

View File

@@ -4,8 +4,6 @@ exports = module.exports = {
getRemoteSupport,
enableRemoteSupport,
getConfig,
_sshInfo: sshInfo
};
@@ -16,7 +14,6 @@ const assert = require('assert'),
path = require('path'),
paths = require('./paths.js'),
safe = require('safetydance'),
settings = require('./settings.js'),
shell = require('./shell.js');
// the logic here is also used in the cloudron-support tool
@@ -53,17 +50,3 @@ async function enableRemoteSupport(enable, auditSource) {
await eventlog.add(eventlog.ACTION_SUPPORT_SSH, auditSource, { enable });
}
async function getConfig() {
const value = await settings.getJson(settings.SUPPORT_CONFIG_KEY);
return value || {
email: 'support@cloudron.io',
remoteSupport: true,
ticketFormBody:
'Use this form to open support tickets. You can also write directly to [support@cloudron.io](mailto:support@cloudron.io).\n\n'
+ '* [Knowledge Base & App Docs](https://docs.cloudron.io/apps/?support_view)\n'
+ '* [Custom App Packaging & API](https://docs.cloudron.io/custom-apps/tutorial/?support_view)\n'
+ '* [Forum](https://forum.cloudron.io/)\n\n',
submitTickets: true
};
}