configurable http.port
This commit is contained in:
parent
ebdd6eeb19
commit
971b11c902
|
@ -23,7 +23,7 @@ public class HttpUtil {
|
||||||
|
|
||||||
// todo: migrate proxy http json API server to TLS
|
// todo: migrate proxy http json API server to TLS
|
||||||
public static final String RUSEFI_PROXY_JSON_PROTOCOL = "http://";
|
public static final String RUSEFI_PROXY_JSON_PROTOCOL = "http://";
|
||||||
public static final int PROXY_JSON_API_HTTP_PORT = 8001;
|
public static final int PROXY_JSON_API_HTTP_PORT = Integer.parseInt("http.port", 8001);
|
||||||
/**
|
/**
|
||||||
* hostname of PROXY server, not primary rusEFI web server - those are two separate hosts at the moment
|
* hostname of PROXY server, not primary rusEFI web server - those are two separate hosts at the moment
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -6,7 +6,7 @@ import java.net.URL;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
|
||||||
public class rusEFIVersion {
|
public class rusEFIVersion {
|
||||||
public static final int CONSOLE_VERSION = 20200723;
|
public static final int CONSOLE_VERSION = 20200724;
|
||||||
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
public static AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
||||||
|
|
||||||
public static long classBuildTimeMillis() {
|
public static long classBuildTimeMillis() {
|
||||||
|
|
|
@ -2,6 +2,7 @@ package com.rusefi.server;
|
||||||
|
|
||||||
import com.devexperts.logging.Logging;
|
import com.devexperts.logging.Logging;
|
||||||
import com.rusefi.Listener;
|
import com.rusefi.Listener;
|
||||||
|
import com.rusefi.LocalApplicationProxy;
|
||||||
import com.rusefi.Timeouts;
|
import com.rusefi.Timeouts;
|
||||||
import com.rusefi.binaryprotocol.BinaryProtocol;
|
import com.rusefi.binaryprotocol.BinaryProtocol;
|
||||||
import com.rusefi.core.Sensor;
|
import com.rusefi.core.Sensor;
|
||||||
|
@ -10,6 +11,7 @@ import com.rusefi.io.commands.HelloCommand;
|
||||||
import com.rusefi.io.tcp.BinaryProtocolProxy;
|
import com.rusefi.io.tcp.BinaryProtocolProxy;
|
||||||
import com.rusefi.io.tcp.BinaryProtocolServer;
|
import com.rusefi.io.tcp.BinaryProtocolServer;
|
||||||
import com.rusefi.io.tcp.TcpIoStream;
|
import com.rusefi.io.tcp.TcpIoStream;
|
||||||
|
import com.rusefi.tools.online.HttpUtil;
|
||||||
import com.rusefi.tools.online.ProxyClient;
|
import com.rusefi.tools.online.ProxyClient;
|
||||||
import net.jcip.annotations.GuardedBy;
|
import net.jcip.annotations.GuardedBy;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
@ -43,6 +45,10 @@ import static com.rusefi.Timeouts.SECOND;
|
||||||
public class Backend implements Closeable {
|
public class Backend implements Closeable {
|
||||||
private static final Logging log = getLogging(Backend.class);
|
private static final Logging log = getLogging(Backend.class);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see HttpUtil#PROXY_JSON_API_HTTP_PORT
|
||||||
|
* @see LocalApplicationProxy#SERVER_PORT_FOR_APPLICATIONS
|
||||||
|
*/
|
||||||
public static final int SERVER_PORT_FOR_CONTROLLERS = 8003;
|
public static final int SERVER_PORT_FOR_CONTROLLERS = 8003;
|
||||||
private static final String MAX_PACKET_GAP = "MAX_PACKET_GAP";
|
private static final String MAX_PACKET_GAP = "MAX_PACKET_GAP";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue