Skip to content

Commit

Permalink
Custom domain for preview stage
Browse files Browse the repository at this point in the history
  • Loading branch information
U-lis committed Jan 17, 2024
1 parent 879c7e0 commit 6ceb574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iap/iap_cdk_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
certificate_arn="arn:aws:acm:us-east-1:319679068466:certificate/8e3f8d11-ead8-4a90-bda0-94a35db71678",
)
custom_domain = _apig.DomainNameOptions(
domain_name=f"iap{'-internal' if config.stage == 'internal' else ''}.9c.gg",
domain_name=f"iap{f'-{config.stage}' if config.stage != 'mainnet' else ''}.9c.gg",
certificate=certificate,
security_policy=_apig.SecurityPolicy.TLS_1_2,
endpoint_type=_apig.EndpointType.EDGE,
Expand Down

0 comments on commit 6ceb574

Please sign in to comment.