File tree Expand file tree Collapse file tree
autobot-slm-backend/ansible/roles/distributed_setup Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ health_check_enabled: true
4242health_check_interval : 60 # seconds
4343health_check_endpoints :
4444 - name : " Backend API"
45- url : " https://{{ coordinator_host }}:8443 /api/health" # Issue #956: HTTPS:8443 since #858/#861
45+ url : " https://{{ coordinator_host }}:{{ backend_nginx_port }} /api/health" # Issue #956: HTTPS:8443 since #858/#861
4646 expected_status : 200
4747 - name : " Redis"
4848 host : " {{ hostvars[groups['redis'][0]]['ansible_host'] }}"
@@ -60,7 +60,11 @@ backup_destinations:
6060 - local_data
6161
6262# Service ports (from SSOT)
63- backend_port : 8443
63+ # backend_nginx_port: external HTTPS port exposed by nginx (TLS termination).
64+ # Do NOT define backend_port here — the backend role owns that variable (8001,
65+ # plain HTTP, uvicorn bind port). Defining it here would override the backend
66+ # role's default when distributed_setup runs after backend in the same play.
67+ backend_nginx_port : 8443
6468frontend_port : 443
6569redis_port : 6379
6670npu_worker_port : 8081
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ echo "=========================================="
2222echo " "
2323
2424# Check coordinator
25- echo -n " Checking Backend Coordinator ({{ coordinator_host }}:{{ backend_port }})... "
26- if curl -s --max-time 5 " http ://{{ coordinator_host }}:{{ backend_port }}/api/health" > /dev/null 2>&1 ; then
25+ echo -n " Checking Backend Coordinator ({{ coordinator_host }}:{{ backend_nginx_port }})... "
26+ if curl -s --max-time 5 " https ://{{ coordinator_host }}:{{ backend_nginx_port }}/api/health" > /dev/null 2>&1 ; then
2727 echo -e " ${GREEN} OK${NC} "
2828else
2929 echo -e " ${RED} Failed${NC} "
4343
4444echo " "
4545echo " Service URLs:"
46- echo " Backend API: http ://{{ coordinator_host }}:{{ backend_port }}"
46+ echo " Backend API: https ://{{ coordinator_host }}:{{ backend_nginx_port }}"
4747{% for node in fleet_nodes %}
4848echo " {{ node.name }}: http://{{ node.host }}:{{ node.port }}"
4949{% endfor %}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ AUTOBOT_DEPLOYMENT_MODE=distributed
66
77# Coordinator configuration
88AUTOBOT_COORDINATOR_HOST={{ coordinator_host }}
9- AUTOBOT_BACKEND_PORT ={{ backend_port }}
9+ AUTOBOT_BACKEND_NGINX_PORT ={{ backend_nginx_port }}
1010
1111# Fleet node hostnames (from inventory)
1212{% for node in fleet_nodes %}
Original file line number Diff line number Diff line change 22 "generated_at": "{{ ansible_date_time.iso8601 }}",
33 "coordinator": {
44 "host": "{{ coordinator_host }}",
5- "port": {{ backend_port }}
5+ "port": {{ backend_nginx_port }}
66 },
77 "fleet_nodes": [
88{% for node in fleet_nodes %}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ generated_at: "{{ ansible_date_time.iso8601 }}"
77coordinator:
88 hostname: "{{ coordinator_host }}"
99 ip: "{{ coordinator_host }}"
10- port: {{ backend_port }}
10+ port: {{ backend_nginx_port }}
1111 services:
1212 - backend-api
1313 - ollama
You can’t perform that action at this time.
0 commit comments