File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
src/main/scala/de/upb/cs/swt/delphi/webapi Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change
1
+ package de .upb .cs .swt .delphi .webapi
2
+
3
+ import com .sksamuel .elastic4s .ElasticsearchClientUri
4
+
5
+ /**
6
+ * @author Ben Hermann
7
+ */
8
+ class Configuration (val bindHost : String = " 0.0.0.0" ,
9
+ val bindPort : Int = 8080 ,
10
+ val elasticsearchClientUri : ElasticsearchClientUri = ElasticsearchClientUri (
11
+ sys.env.getOrElse(" DELPHI_ELASTIC_URI" , " elasticsearch://localhost:9200" ))) {
12
+
13
+ }
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ object Server extends HttpApp {
45
45
}
46
46
47
47
def main (args : Array [String ]): Unit = {
48
- Server .startServer(" 0.0.0.0" , 8080 )
48
+ val configuration = new Configuration ()
49
+ Server .startServer(configuration.bindHost, configuration.bindPort)
49
50
}
50
51
51
52
You can’t perform that action at this time.
0 commit comments