Skip to content

Commit 34a3d91

Browse files
committed
added certbots staging flag option to dstack ingress
1 parent 033b124 commit 34a3d91

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

custom-domain/dstack-ingress/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ configs:
180180
- `PROXY_READ_TIMEOUT`: Optional value for nginx `proxy_read_timeout` (numeric with optional `s|m|h` suffix, e.g. `30s`) in single-domain mode
181181
- `PROXY_SEND_TIMEOUT`: Optional value for nginx `proxy_send_timeout` (numeric with optional `s|m|h` suffix, e.g. `30s`) in single-domain mode
182182
- `PROXY_CONNECT_TIMEOUT`: Optional value for nginx `proxy_connect_timeout` (numeric with optional `s|m|h` suffix, e.g. `10s`) in single-domain mode
183+
- `CERTBOT_STAGING`: Optional; set this value to the string `true` to set the `--staging` server option on the [`certbot` cli](https://eff-certbot.readthedocs.io/en/stable/using.html#certbot-command-line-options)
183184

184185
**Backward Compatibility:**
185186

custom-domain/dstack-ingress/scripts/certman.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ def _build_certbot_command(self, action: str, domain: str, email: str) -> List[s
288288
if action == "certonly":
289289
base_cmd.extend(["--agree-tos", "--no-eff-email",
290290
"--email", email, "-d", domain])
291+
if os.environ.get("CERTBOT_STAGING", "false") == "true":
292+
base_cmd.extend(["--staging"])
291293

292294
base_cmd.extend(["--dns-cloudflare-propagation-seconds=120"])
293295

0 commit comments

Comments
 (0)