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:
application:
name: jateway
profiles:
active: dev
cloud:
gateway:
routes:

@ -9,6 +9,7 @@ services:
ports:
- 8080:8080
environment:
- SPRING_CONFIG_LOCATION=/app/config/application.yaml
- SPRING_PROFILES_ACTIVE=default,example
- SPRING_CONFIG_ADDITIONAL_LOCATION=/app/config/
volumes:
- ./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:
application:
name: jateway
profiles:
active: dev
cloud:
gateway:
routes:
- id: simple_route
uri: http://example.com
predicates:
- Method=GET
management:
server:

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