Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit ef67655

Browse files
committed
minor changes to debug flower health checK
1 parent b7cc388 commit ef67655

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

awscdk/awscdk/cloudfront.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, scope: core.Construct, id: str, **kwargs,) -> None:
2323
s3_domain_suffix = ".s3-website-us-east-1.amazonaws.com"
2424
s3_website_domain_name = s3_domain_prefix + s3_domain_suffix
2525

26-
path_patterns = ["/api/*", "/admin/*", "/flower/*"]
26+
path_patterns = ["/api/*", "/admin/*", "/flower*"]
2727

2828
self.distribution = cloudfront.CloudFrontWebDistribution(
2929
self,

awscdk/awscdk/flower.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ def __init__(self, scope: core.Construct, id: str, **kwargs,) -> None:
3131
log_retention=logs.RetentionDays.ONE_DAY,
3232
),
3333
command=[
34-
"flower",
35-
"--url_prefix=flower/",
34+
"--url_prefix=flower",
3635
f"--broker={CELERY_BROKER_URL}",
3736
f"--basic_auth=flower:{FLOWER_PASSWORD}",
3837
],
@@ -61,8 +60,8 @@ def __init__(self, scope: core.Construct, id: str, **kwargs,) -> None:
6160
port=80,
6261
targets=[self.flower_service],
6362
priority=1,
64-
path_patterns=["/flower/*", "flower/*"],
63+
path_patterns=["/flower/*", "/flower*"],
6564
health_check=elbv2.HealthCheck(
66-
healthy_http_codes="200-401", path="/flower/"
65+
healthy_http_codes="200-401", path="/flower"
6766
),
6867
)

0 commit comments

Comments
 (0)