Skip to content

Commit

Permalink
fix gateway issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienBtr committed Nov 14, 2020
1 parent 416bce6 commit cfc22e3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
12 changes: 11 additions & 1 deletion services/api-gateway/krakend.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": 2,
"timeout": "3000ms",
"timeout": "20000ms",
"cache_ttl": "300s",
"extra_config": {
"github.com/devopsfaith/krakend-cors": {
Expand All @@ -21,6 +21,16 @@
],
"max_age": "12h"
},
"github.com/devopsfaith/bloomfilter": {
"N": 10000000,
"P": 0.0000001,
"HashName": "optimal",
"TTL": 1500,
"port": 1234,
"TokenKeys": [
"jti"
]
},
"github.com/devopsfaith/krakend-metrics": {
"listen_address": ":8090"
},
Expand Down
2 changes: 1 addition & 1 deletion services/api-gateway/settings/auth.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"extra_config": {
"github.com/devopsfaith/krakend-jose/signer": {
"alg": "HS256",
"kid": "micro-express",
"kid": "micro",
"keys-to-sign": [
"accessToken"
],
Expand Down
4 changes: 2 additions & 2 deletions services/api-gateway/templates/endpoint.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"*"
],
"extra_config": {{ marshal $el.extra_config }},
"output_encoding": "no-op",
"output_encoding": "{{ $el.encoding }}",
"method": "{{ $el.method }}",
"backend": [
{
"encoding": "no-op",
"encoding": "{{ $el.encoding }}",
"host": {{ marshal $.hosts }},
"url_pattern": "{{ $el.url_pattern }}",
"method": "{{ $el.method }}"
Expand Down
3 changes: 3 additions & 0 deletions services/auth/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ services:
- ./src:/app/src
- /app/node_modules
networks:
- user_app
- app
logging:
driver: ${LOGGING_DRIVER:-json-file}
restart: always

networks:
user_app:
external: true
app:
driver: bridge
2 changes: 1 addition & 1 deletion services/auth/src/jwk/symmetric.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"kty": "oct",
"k": "AyM1SysPpbyDfgZld3umj1qzKObwVMkoqQ-EstJQLr_T-1qS0gZH75aKtMN3Yj0iPS4hcgUuTwjAzZr1Z9CAow",
"kid": "micro-express",
"kid": "micro",
"alg": "HS256"
}
]
Expand Down

0 comments on commit cfc22e3

Please sign in to comment.