custom acme implementation + file manager improvements

This commit is contained in:
usmannasir
2025-04-23 02:59:42 +05:00
parent 41ec3afdd7
commit a0629fae50
4 changed files with 1692 additions and 391 deletions

View File

@@ -2726,7 +2726,13 @@ class WebsiteManager:
port = ProcessUtilities.fetchCurrentPort()
webhookURL = 'https://' + ipAddress + ':%s/websites/' % (port) + self.domain + '/gitNotify'
webhookURL = webhookURL.replace(' ', '%20')
if website.externalApp == 'github':
command = "ssh-keygen -f /home/%s/.ssh/%s -t rsa -N ''" % (self.domain, website.externalApp)
ProcessUtilities.executioner(command, website.externalApp)
configContent = """Host github.com
proc = httpProc(request, 'websiteFunctions/setupGit.html',
{'domainName': self.domain, 'installed': 1, 'webhookURL': webhookURL})
return proc.render()