more flexible configurationing

This commit is contained in:
bvn13 2025-02-28 02:54:53 +03:00
parent 47d3aace47
commit 3a0c0cf956
5 changed files with 20 additions and 12 deletions

@ -3,8 +3,6 @@ server:
spring: spring:
application: application:
name: jateway name: jateway
profiles:
active: dev
cloud: cloud:
gateway: gateway:
routes: routes:

@ -9,6 +9,7 @@ services:
ports: ports:
- 8080:8080 - 8080:8080
environment: environment:
- SPRING_CONFIG_LOCATION=/app/config/application.yaml - SPRING_PROFILES_ACTIVE=default,example
- SPRING_CONFIG_ADDITIONAL_LOCATION=/app/config/
volumes: volumes:
- ./config:/app/config - ./config:/app/config

@ -0,0 +1,8 @@
spring:
cloud:
gateway:
routes:
- id: simple_route
uri: http://example.com
predicates:
- Method=GET

@ -3,15 +3,6 @@ server:
spring: spring:
application: application:
name: jateway name: jateway
profiles:
active: dev
cloud:
gateway:
routes:
- id: simple_route
uri: http://example.com
predicates:
- Method=GET
management: management:
server: server:

@ -0,0 +1,10 @@
▄▄▄██▀▀▀▄▄▄ ▄▄▄█████▓▓█████ █ █░ ▄▄▄ ▓██ ██▓
▒██ ▒████▄ ▓ ██▒ ▓▒▓█ ▀ ▓█░ █ ░█░▒████▄ ▒██ ██▒
░██ ▒██ ▀█▄ ▒ ▓██░ ▒░▒███ ▒█░ █ ░█ ▒██ ▀█▄ ▒██ ██░
▓██▄██▓ ░██▄▄▄▄██░ ▓██▓ ░ ▒▓█ ▄ ░█░ █ ░█ ░██▄▄▄▄██ ░ ▐██▓░
▓███▒ ▓█ ▓██▒ ▒██▒ ░ ░▒████▒░░██▒██▓ ▓█ ▓██▒ ░ ██▒▓░
▒▓▒▒░ ▒▒ ▓▒█░ ▒ ░░ ░░ ▒░ ░░ ▓░▒ ▒ ▒▒ ▓▒█░ ██▒▒▒
▒ ░▒░ ▒ ▒▒ ░ ░ ░ ░ ░ ▒ ░ ░ ▒ ▒▒ ░▓██ ░▒░
░ ░ ░ ░ ▒ ░ ░ ░ ░ ░ ▒ ▒ ▒ ░░
░ ░ ░ ░ ░ ░ ░ ░ ░░ ░
░ ░