mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 09:37:54 +01:00
[Smell] Rename Nginx -> Proxy in HTTPS Override
Thanks to Miclebrick for the observation.
This commit is contained in:
parent
7689457d1f
commit
1bb75299ff
@ -118,7 +118,7 @@ public class WebServer implements SubSystem {
|
||||
logger.log(L.INFO_COLOR, "§e" + locale.getString(PluginLang.WEB_SERVER_NOTIFY_HTTP_USER_AUTH));
|
||||
server = HttpServer.create(new InetSocketAddress(config.getString(Settings.WEBSERVER_IP), port), 10);
|
||||
} else if (server == null) {
|
||||
logger.log(L.INFO_COLOR, "§eWebServer: Nginx HTTPS Override enabled. HTTP Server in use, make sure that your Nginx is routing with HTTPS and AlternativeIP.Link points to Nginx");
|
||||
logger.log(L.INFO_COLOR, "§eWebServer: Proxy HTTPS Override enabled. HTTP Server in use, make sure that your Proxy webserver is routing with HTTPS and AlternativeIP.Link points to the Proxy");
|
||||
server = HttpServer.create(new InetSocketAddress(config.getString(Settings.WEBSERVER_IP), port), 10);
|
||||
}
|
||||
server.createContext("/", requestHandler);
|
||||
@ -142,7 +142,7 @@ public class WebServer implements SubSystem {
|
||||
private boolean startHttpsServer() {
|
||||
String keyStorePath = config.getString(Settings.WEBSERVER_CERTIFICATE_PATH);
|
||||
|
||||
if (keyStorePath.equalsIgnoreCase("nginx")) {
|
||||
if (keyStorePath.equalsIgnoreCase("proxy")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user