Skip to content

Commit

Permalink
Story #14267: Unify consul's service names for VitamUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
GiooDev committed Feb 24, 2025
1 parent ef721a8 commit fd60d7b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deployment/environments/group_vars/all/vitamui_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ vitamui:

# Applications
api_gateway:
host: "api-gateway.service.{{ consul_domain }}"
host: "vitamui-api-gateway.service.{{ consul_domain }}"
vitamui_component: api-gateway
port_service: 8090
port_admin: 7090
Expand Down Expand Up @@ -120,7 +120,7 @@ vitamui:
write_timeout: 30

cas_server:
host: "cas-server.service.{{ consul_domain }}"
host: "vitamui-cas-server.service.{{ consul_domain }}"
vitamui_component: cas-server
port_service: 8001
port_admin: 7001
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ authn:

spring:
application:
name: gateway-server
name: vitamui-{{ vitamui_struct.vitamui_component }}
cloud:
config:
enabled: false
consul:
enabled: true
host: {{ hostvars[inventory_hostname][consul.network] if (inventory_hostname in groups['hosts_vitamui_consul_server'] or inventory_hostname in groups['hosts_consul_server']) else 'localhost' }}
discovery:
serviceName: gateway-server
serviceName: vitamui-{{ vitamui_struct.vitamui_component }}
preferIpAddress: true
healthCheckUrl: http://${management.server.address}:${management.server.port}/actuator/health
tags: {{ consul_tags }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ spring:
enabled: true
host: {{ hostvars[inventory_hostname][consul.network] if (inventory_hostname in groups['hosts_vitamui_consul_server'] or inventory_hostname in groups['hosts_consul_server']) else 'localhost' }}
discovery:
serviceName: vitamui-{{ vitamui_struct.vitamui_component }}
preferIpAddress: true
healthCheckUrl: http://${management.server.address}:${management.server.port}/actuator/health
tags: {{ consul_tags }}
Expand Down

0 comments on commit fd60d7b

Please sign in to comment.