Skip to content

Commit

Permalink
fix(server): certificate of unbundled website domain name is not dele…
Browse files Browse the repository at this point in the history
…ted (#1871)

Co-authored-by: HUAHUAI23 <[email protected]>
  • Loading branch information
HUAHUAI23 and HUAHUAI23 authored Feb 23, 2024
1 parent 6cb7e57 commit d52a578
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/src/gateway/website-task.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,13 @@ export class WebsiteTaskService {
}

// delete website custom certificate if custom domain is set
if (site.state === DomainState.Deleted && site.isCustom) {

/* Certificates are only removed when you delete the application and unbind the custom runtime domain.
Starting, restarting and stopping the application does not remove certificates */
if (
(site.state === DomainState.Deleted && site.isCustom) ||
(site.state === DomainState.Active && site.phase === DomainPhase.Deleting)
) {
const waitingTime = Date.now() - site.updatedAt.getTime()

// delete custom domain certificate
Expand Down

0 comments on commit d52a578

Please sign in to comment.