Skip to content

Commit

Permalink
skip app certs fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrunk committed Jan 21, 2024
1 parent 791c76e commit a5e9c2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/domain/cert.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const {

async function checkCertificatePresetForDomain(domain) {
try {
if (domain.endsWith(`${config.appSubDomain}.${config.mainDomain}`) || domain.endsWith('app.runonflux.io') || domain.endsWith('app2.runonflux.io')) {
return true;
}
const path = `/etc/ssl/fluxapps/${domain}.pem`;
const pathB = `/etc/letsencrypt/live/${domain}/fullchain.pem`;
await fs.access(path); // only check if file exists. Does not check permissions
Expand Down

0 comments on commit a5e9c2f

Please sign in to comment.