domain: split the config and wellknown routes

we want to add more stuff to the UI like the jitsi URL
This commit is contained in:
Girish Ramakrishnan
2021-12-03 13:46:54 -08:00
parent 5592dc8a42
commit 39807e6ba4
8 changed files with 107 additions and 41 deletions

View File

@@ -143,7 +143,7 @@ describe('Reverse Proxy', function () {
before(async function () {
domainCopy.tlsConfig = { provider: 'letsencrypt-prod' };
await domains.update(domainCopy.domain, domainCopy, auditSource);
await domains.setConfig(domainCopy.domain, domainCopy, auditSource);
});
it('returns prod acme in prod cloudron', async function () {
@@ -157,7 +157,7 @@ describe('Reverse Proxy', function () {
before(async function () {
domainCopy.tlsConfig = { provider: 'letsencrypt-staging' };
await domains.update(domainCopy.domain, domainCopy, auditSource);
await domains.setConfig(domainCopy.domain, domainCopy, auditSource);
});
it('returns staging acme in prod cloudron', async function () {
@@ -171,7 +171,7 @@ describe('Reverse Proxy', function () {
before(async function () {
domainCopy.tlsConfig = { provider: 'fallback' };
await domains.update(domainCopy.domain, domainCopy, auditSource);
await domains.setConfig(domainCopy.domain, domainCopy, auditSource);
});
it('configure nginx correctly', async function () {