From 83560ba0959932d1c080074a2e400e7923066163 Mon Sep 17 00:00:00 2001 From: Noah Paessel Date: Tue, 25 Jan 2022 15:48:48 -0500 Subject: [PATCH] 2022-01-25 - Use SSL for Websocket & Log Server connections Otherwise we get mixed-content security warnings when the application loads over HTTP. --- Assets/Scripts/Network/ServerList.cs | 4 ++-- Assets/Scripts/Utilities/SimulationConstants.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Network/ServerList.cs b/Assets/Scripts/Network/ServerList.cs index d3e3e2aa..efd75359 100644 --- a/Assets/Scripts/Network/ServerList.cs +++ b/Assets/Scripts/Network/ServerList.cs @@ -21,8 +21,8 @@ public class ServerList public static ServerRecord Local = new ServerRecord("Local", "ws://localhost:2567"); public static ServerRecord Custom = new ServerRecord("Custom", "ws://192.168.1.86:2567"); - public static ServerRecord Dev = new ServerRecord("Dev", "ws://ceasar-serve-update-col-4va3ac.herokuapp.com/"); - public static ServerRecord Web = new ServerRecord("Web", "ws://ceasar-server-staging.herokuapp.com/"); + public static ServerRecord Dev = new ServerRecord("Dev", "wss://ceasar-serve-update-col-4va3ac.herokuapp.com/"); + public static ServerRecord Web = new ServerRecord("Web", "wss://ceasar-server-staging.herokuapp.com/"); // track our single instance: private static ServerList instance; diff --git a/Assets/Scripts/Utilities/SimulationConstants.cs b/Assets/Scripts/Utilities/SimulationConstants.cs index 480b63d1..c3fd83a9 100644 --- a/Assets/Scripts/Utilities/SimulationConstants.cs +++ b/Assets/Scripts/Utilities/SimulationConstants.cs @@ -93,7 +93,7 @@ public static Dictionary LookupButtonsByPanel() public static readonly string CONSTELLATIONS_NONE = "none"; // ======== Logging configuration: ==================================================== - public static readonly string LOG_URL = "http://cc-log-manager.herokuapp.com/api/logs"; + public static readonly string LOG_URL = "https://cc-log-manager.herokuapp.com/api/logs"; public static readonly string LOG_APP_NAME = "CEASAR"; public static readonly string LOG_EVENT_DISCONNECT = "Disconnected";