Skip to content

Commit b5c1f59

Browse files
committed
Remove unnecessary proxy configuration for Airflow scheduler
1 parent 04c03df commit b5c1f59

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

docker-compose.prod.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,7 @@ services:
191191
<<: *airflow-common
192192
command: scheduler
193193
healthcheck:
194-
test:
195-
[
196-
"CMD",
197-
"curl",
198-
"--fail",
199-
"${AIRFLOW__WEBSERVER__BASE_URL/scheduler/health",
200-
]
194+
test: ["CMD", "curl", "--fail", "${AIRFLOW__WEBSERVER__BASE_URL/health"]
201195
interval: 30s
202196
timeout: 10s
203197
retries: 5

frontend/my-app/nginx.conf

-14
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,6 @@ server {
4242
proxy_set_header Connection "upgrade";
4343
}
4444

45-
location /airflow/scheduler/ {
46-
proxy_pass http://airflow-scheduler:8974;
47-
proxy_set_header Host $http_host;
48-
proxy_redirect off;
49-
proxy_http_version 1.1;
50-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
51-
proxy_set_header X-Forwarded-Proto $scheme;
52-
proxy_set_header X-Forwarded-Host $host;
53-
proxy_set_header X-Forwarded-Port $server_port;
54-
proxy_set_header Upgrade $http_upgrade;
55-
proxy_set_header Connection "upgrade";
56-
}
57-
58-
5945
# Specify the error pages
6046
error_page 500 502 503 504 /50x.html;
6147
location = /50x.html {

0 commit comments

Comments
 (0)