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 {
4545 }
4646
4747 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)
4950 }
5051
5152
You can’t perform that action at this time.
0 commit comments