Skip to content

Commit

Permalink
first release
Browse files Browse the repository at this point in the history
  • Loading branch information
Il Gigante committed Dec 18, 2024
1 parent 411bd8e commit d491a3c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 25 deletions.
6 changes: 2 additions & 4 deletions config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@ logging:
spring:
cloud:
gateway:
default-filters:
- name: FlexibleAuthenticationFilter
routes:
- id: example-service-1
uri: http://example-service-1:5000
uri: http://127.0.0.1:8000
predicates:
- Path=/example1/**
filters:
- StripPrefix=1
- id: example-service-2
uri: http://example-service-2:4000
uri: http://127.0.0.1:8001
predicates:
- Path=/example2/**
filters:
Expand Down
7 changes: 6 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ services:
civil-servant:
build: .
ports:
- "8187:8080"
- "8187:8187"
networks:
- gateway-network
volumes:
- /srv/civil-servant/services:/app/services
- /srv/civil-servant/config:/config
- /path/to/dir:/container/dir
environment:
- PROPERTY1:prop1
- PROPERTY2:prop2

networks:
gateway-network:
Expand Down
21 changes: 1 addition & 20 deletions services/example-service/service-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,5 @@
"name": "example-service",
"language": "python",
"route": "/example-service",
"auth": {
"supported_extraction_methods": [
"authorization_header",
"query_param",
"custom_header"
]
},
"auth_token": "change_this_32_char_token_in_production",
"start_command": "custom_command_here",
"environment": {
"PROPERTY1": "prop1",
"PROPERTY2": "prop2"
},
"volumes": [
{
"source": "/path/to/dir",
"target": "/container/dir",
"read_only": "true | false"
}
]
"start_command": "custom_command_here"
}

0 comments on commit d491a3c

Please sign in to comment.