-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "modules/base"] | ||
path = modules/base | ||
url = https://github.com/lyind/base.git |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Viceroy | ||
|
||
Simple proxy server based on Undertow exporting services discovered via Insect discovery protocol. | ||
|
||
|
||
## Usage | ||
|
||
Configure path prefix to route (PREFIX=ROUTE) mappings via command line options: | ||
``` | ||
--viceroy.map /app/help=help-service | ||
--viceroy.map /item=item | ||
``` | ||
|
||
Requests to the path ```/app/help/item3``` would be proxied to the service ```help-service``` and path ```/item3```. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
plugins { | ||
id 'application' | ||
id 'idea' | ||
id 'java' | ||
id 'com.github.johnrengelman.shadow' version '1.2.4' | ||
} | ||
|
||
group 'net.talpidae' | ||
version '1' | ||
|
||
defaultTasks 'jar' | ||
|
||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' | ||
|
||
mainClassName = 'net.talpidae.viceroy.ViceroyApplication' | ||
manifest { | ||
attributes 'Main-Class': mainClassName | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
jcenter() | ||
mavenCentral() | ||
} | ||
|
||
// exclude javax.xml.parsers | ||
task printClasspath { | ||
doLast { | ||
configurations.testRuntime.each { println it } | ||
} | ||
} | ||
|
||
dependencies { | ||
compileOnly "org.projectlombok:lombok:1.16.14" | ||
|
||
compile 'net.talpidae:base:1' // or modules/base | ||
testCompile group: 'junit', name: 'junit', version: '4.11' | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Sun Feb 12 19:24:37 CET 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-all.zip |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Place modules here. | ||
|
||
If the module sources are not present gradle will look for the artifact elsewhere. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
rootProject.name = 'viceroy' | ||
|
||
// module projects (delete their local directories to pull from binary dao instead) | ||
file('modules').listFiles().each { File moduleBuild -> | ||
if (moduleBuild.isDirectory()) | ||
{ | ||
includeBuild moduleBuild | ||
} | ||
} |