Skip to content

Commit

Permalink
Do not run certbot if https is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
r4victor committed May 14, 2024
1 parent 6434dbe commit f5fa4db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gateway/src/dstack/gateway/core/nginx.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ async def register_entrypoint(self, domain: str, prefix: str, https: bool):

logger.debug("Registering entrypoint domain %s", domain)

await run_async(self.run_certbot, domain)
if https:
await run_async(self.run_certbot, domain)
await run_async(self.write_conf, conf.render(), config_name)
self.configs[config_name] = conf

Expand Down

0 comments on commit f5fa4db

Please sign in to comment.