-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#463 filled out logic for cassandra oauth plugin. fixed broken querie…
…s. got cassandra generally working it seems
- Loading branch information
Showing
14 changed files
with
472 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name" : "my-endpoint", | ||
"active" : true, | ||
"proxy" : { | ||
"listen_path" : "/example/*", | ||
"upstreams" : { | ||
"balancing": "roundrobin", | ||
"targets": [ | ||
{"target": "http://www.mocky.io/v2/595625d22900008702cd71e8"} | ||
] | ||
}, | ||
"methods" : ["GET"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: '3' | ||
services: | ||
|
||
janus: | ||
image: motivlabs/janus:debug | ||
ports: | ||
- "8080:8080" | ||
- "8081:8081" | ||
- "40000:40000" | ||
environment: | ||
- debug=1 | ||
depends_on: | ||
- service1 | ||
- janus-database | ||
volumes: | ||
- ./janus.toml:/etc/janus/janus.toml | ||
- ~/dev/motiv/janus:/janus | ||
|
||
janus-database: | ||
image: cassandra:latest | ||
container_name: db | ||
ports: | ||
- "9042:9042" | ||
environment: | ||
- MAX_HEAP_SIZE=1G | ||
- HEAP_NEWSIZE=250M | ||
- JAVA_OPTS="-Dcassandra.skip_wait_for_gossip_to_settle=0 -Dcassandra.num_tokens=1 -Dcassandra.initial_token=1" | ||
|
||
service1: | ||
image: rodolpheche/wiremock | ||
ports: | ||
- '9089:8080' | ||
volumes: | ||
- ../front-proxy/stubs:/home/wiremock/mappings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
################################################################ | ||
# Global configuration | ||
################################################################ | ||
port = 8080 | ||
|
||
[log] | ||
level = "debug" | ||
|
||
################################################################ | ||
# API configuration backend | ||
################################################################ | ||
[web] | ||
port = 8081 | ||
|
||
[web.credentials] | ||
secret = "secret" | ||
|
||
[web.credentials.basic] | ||
users = {admin = "admin"} | ||
|
||
[database] | ||
dsn = "cassandra:///db/system/janus/300" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
[ | ||
{ | ||
"name" : "example", | ||
"active" : true, | ||
"proxy" : { | ||
"preserve_host" : false, | ||
"listen_path" : "/example/*", | ||
"upstreams" : { | ||
"balancing": "roundrobin", | ||
"targets": [ | ||
{"target": "http://service1:8080/"} | ||
] | ||
}, | ||
"strip_path" : false, | ||
"append_path" : false, | ||
"methods" : ["GET"] | ||
{ | ||
"name" : "my-endpoint", | ||
"active" : true, | ||
"proxy" : { | ||
"listen_path" : "/example/*", | ||
"upstreams" : { | ||
"balancing": "roundrobin", | ||
"targets": [ | ||
{"target": "http://www.mocky.io/v2/595625d22900008702cd71e8"} | ||
] | ||
}, | ||
"health_check": { | ||
"url": "http://service1:8080/status", | ||
"timeout": 3 | ||
} | ||
"methods" : ["GET"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.