mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2024-11-21 19:25:02 +00:00
i give up
This commit is contained in:
parent
8e71735d4d
commit
81f554334b
@ -2,7 +2,6 @@ plugins {
|
|||||||
java
|
java
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
idea
|
idea
|
||||||
// id("com.github.johnrengelman.shadow") version "7.1.2"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "dev.plex"
|
group = "dev.plex"
|
||||||
|
@ -32,6 +32,7 @@ public class HTTPDModule extends PlexModule
|
|||||||
@Override
|
@Override
|
||||||
public void load()
|
public void load()
|
||||||
{
|
{
|
||||||
|
|
||||||
moduleConfig = new ModuleConfig(this, "settings.yml");
|
moduleConfig = new ModuleConfig(this, "settings.yml");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,8 +55,8 @@ public class HTTPDModule extends PlexModule
|
|||||||
configuration.addCustomizer(new ForwardedRequestCustomizer());
|
configuration.addCustomizer(new ForwardedRequestCustomizer());
|
||||||
HttpConnectionFactory factory = new HttpConnectionFactory(configuration);
|
HttpConnectionFactory factory = new HttpConnectionFactory(configuration);
|
||||||
ServerConnector connector = new ServerConnector(server, factory);
|
ServerConnector connector = new ServerConnector(server, factory);
|
||||||
connector.setPort(moduleConfig.getInt("server.port"));
|
|
||||||
connector.setHost(moduleConfig.getString("server.bind-address"));
|
connector.setHost(moduleConfig.getString("server.bind-address"));
|
||||||
|
connector.setPort(moduleConfig.getInt("server.port"));
|
||||||
|
|
||||||
new GetEndpoints();
|
new GetEndpoints();
|
||||||
|
|
||||||
@ -73,7 +74,7 @@ public class HTTPDModule extends PlexModule
|
|||||||
{
|
{
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}, "jetty-server");
|
}, "Jetty-Server");
|
||||||
serverThread.start();
|
serverThread.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user