Possible to use Phantombot proxied behind Nginx for secure connections?


#1

Java Version: 1.8.0_171-8u171-b11-0ubuntu0.18.04.1-b11
OS Version: Linux 4.15.0-20-generic (amd64)
Panel Version: 1.1
PhantomBot Version: 2.4.1 (Revision: 6a2fb20d)
Browser and Version (for Panel Support): Google Chrome - Version 66.0.3359.181 (Official Build) (64-bit)
Stock PhantomBot: Yes

By default, I do believe that Phantombot doesn’t use SSL in any way, and when being hosted on a server open to the internet, this guide is only useful as far as getting the bot running.

I’d prefer to have a secure connection to my bot considering usernames and passwords are exchanged. This brought me to attempting to proxy the Phantombot web server through Nginx in hopes to secure it. However, this doesn’t seem to be going so well since as there are many mixed content warnings in Chrome.

Is there a way to successfully proxying Phantombot through Nginx entirely? Or is there at least some alternative for hosting Phantombot on a server that uses a secure connection?

Cheers!


#2

You will have to setup PhantomBot’s integrated SSL as well if you want to use it behind an SSL proxy with nginx, or like you said, you’ll get the mix content errors.


#3

Perfect, I’ll take a look that and report back with my success/failures. :+1:


#4

I seem to have Phantombot running well with SSL on now (no errors in the log), however, I can no longer reach the Panel or YTP page, only the default webpage.

On the default page, the HTTPS padlock is red for some reason despite the page loading and not showing any warnings. The cert is shown as valid as well.

The panel and YTP pages display an SSL error:

This site can’t provide a secure connection
mydomain.com sent an invalid response.
ERR_SSL_PROTOCOL_ERROR

This is still being proxied through Nginx for clarification. I had to modify the proxy_pass parameter to https instead of http as I expected. Other than the required values added to the botlogin.txt, I’ve not changed anything else.

Pbot log

May 25 23:39:35 PhantomBot systemd[1]: Started PhantomBot Twitch Bot.
May 25 23:39:36 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:36.087 GMT] The working directory is: /opt/PhantomBotBot
May 25 23:39:36 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:36.101 GMT] Detected Java 1.8.0_171 running on Linux 4.15.0-20-generic (amd64)
May 25 23:39:36 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:36.107 GMT]
May 25 23:39:36 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:36.110 GMT] PhantomBot Version: 2.4.1
May 25 23:39:36 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:36.111 GMT] Build Revision: 6a2fb20d
May 25 23:39:36 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:36.111 GMT] Creator: mast3rplan
May 25 23:39:36 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:36.112 GMT] Developers: PhantomIndex, Kojitsari, ScaniaTV, Zackery (Zelakto) & IllusionaryOne
May 25 23:39:36 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:36.112 GMT] https://phantombot.tv/
May 25 23:39:36 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:36.114 GMT]
May 25 23:39:36 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:36.622 GMT] YouTubeSocketSecureServer accepting connections on port: 25003 (SSL)
May 25 23:39:36 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:36.643 GMT] PanelSocketSecureServer accepting connections on port: 25004 (SSL)
May 25 23:39:36 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:36.683 GMT] HTTPS server accepting connection on port: 25000 (SSL)
May 25 23:39:38 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:38.237 GMT]
May 25 23:39:39 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:39.678 GMT] Loaded module: core/misc.js (Enabled)
May 25 23:39:39 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:39.700 GMT] Loaded module: core/jsTimers.js (Enabled)
May 25 23:39:40 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:40.005 GMT] Loaded module: core/updates.js (Enabled)
May 25 23:39:40 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:40.355 GMT] Successfully authenticated with Discord.
May 25 23:39:40 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:40.433 GMT] Loaded module: core/chatModerator.js (Enabled)
May 25 23:39:40 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:40.477 GMT] Loaded module: core/fileSystem.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.130 GMT] Loaded module: core/lang.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.153 GMT] Loaded module: core/commandPause.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.201 GMT] Loaded module: core/logging.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.227 GMT] Loaded module: core/commandRegister.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.249 GMT] Loaded module: core/whisper.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.274 GMT] Loaded module: core/commandCoolDown.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.291 GMT] Loaded module: core/keywordCoolDown.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.305 GMT] Loaded module: core/gameMessages.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.336 GMT] Loaded module: core/patternDetector.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.415 GMT] Loaded module: core/permissions.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.457 GMT] Loaded module: core/streamInfo.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.500 GMT] Loaded module: core/timeSystem.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.532 GMT] Loaded module: core/initCommands.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.567 GMT] Loaded module: core/panelCommands.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.583 GMT] Loaded module: games/roll.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.596 GMT] Loaded module: games/random.js (Disabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.617 GMT] Loaded module: games/gambling.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.636 GMT] Loaded module: games/roulette.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.655 GMT] Loaded module: games/killCommand.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.678 GMT] Loaded module: games/slotMachine.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.730 GMT] Loaded module: games/adventureSystem.js (Disabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.745 GMT] Loaded module: games/8ball.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.771 GMT] Loaded module: handlers/followHandler.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.798 GMT] Loaded module: handlers/streamElementsHandler.js (Disabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.849 GMT] Loaded module: handlers/gameWispHandler.js (Disabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.867 GMT] Loaded module: handlers/dataServiceHandler.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.895 GMT] Loaded module: handlers/keywordHandler.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.917 GMT] Loaded module: handlers/tipeeeStreamHandler.js (Disabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.932 GMT] Loaded module: handlers/bitsHandler.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.957 GMT] Loaded module: handlers/raidHandler.js (Enabled)
May 25 23:39:41 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:41.972 GMT] Loaded module: handlers/wordCounter.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.021 GMT] Loaded module: handlers/twitterHandler.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.046 GMT] Loaded module: handlers/gameScanHandler.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.060 GMT] Loaded module: handlers/emotesHandler.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.073 GMT] Loaded module: handlers/clipHandler.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.105 GMT] Loaded module: handlers/panelHandler.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.130 GMT] Loaded module: handlers/donationHandler.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.172 GMT] Loaded module: handlers/subscribeHandler.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.210 GMT] Loaded module: handlers/hostHandler.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.247 GMT] Loaded module: systems/noticeSystem.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.266 GMT] Loaded module: systems/ticketraffleSystem.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.293 GMT] Loaded module: systems/ranksSystem.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.331 GMT] Loaded module: systems/bettingSystem.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.351 GMT] Loaded module: systems/cleanupSystem.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.382 GMT] Loaded module: systems/audioPanelSystem.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.404 GMT] Loaded module: systems/quoteSystem.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.420 GMT] Loaded module: systems/auctionSystem.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.446 GMT] Loaded module: systems/pollSystem.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.473 GMT] Loaded module: systems/queueSystem.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.492 GMT] Loaded module: systems/greetingSystem.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.558 GMT] Loaded module: systems/pointSystem.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.707 GMT] Loaded module: systems/youtubePlayer.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.752 GMT] Loaded module: systems/raffleSystem.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.853 GMT] Loaded module: commands/customCommands.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.867 GMT] Loaded module: commands/deathctrCommand.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.877 GMT] Loaded module: commands/highlightCommand.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.887 GMT] Loaded module: commands/lastseenCommand.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.904 GMT] Loaded module: commands/dualstreamCommand.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.923 GMT] Loaded module: commands/nameConverter.js (Disabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.945 GMT] Loaded module: commands/streamCommand.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.967 GMT] Loaded module: commands/topCommand.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.981 GMT] Loaded module: discord/core/misc.js (Enabled)
May 25 23:39:42 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:42.999 GMT] Loaded module: discord/core/accountLink.js (Enabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.011 GMT] Loaded module: discord/core/patternDetector.js (Enabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.061 GMT] Loaded module: discord/core/moderation.js (Enabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.077 GMT] Loaded module: discord/core/registerCommand.js (Enabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.093 GMT] Loaded module: discord/core/commandCooldown.js (Enabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.118 GMT] Loaded module: discord/core/roleManager.js (Enabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.131 GMT] Loaded module: discord/games/roll.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.143 GMT] Loaded module: discord/games/random.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.161 GMT] Loaded module: discord/games/gambling.js (Enabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.172 GMT] Loaded module: discord/games/roulette.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.184 GMT] Loaded module: discord/games/slotMachine.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.193 GMT] Loaded module: discord/games/kill.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.197 GMT] Loaded module: discord/games/8ball.js (Enabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.214 GMT] Loaded module: discord/handlers/followHandler.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.250 GMT] Loaded module: discord/handlers/streamHandler.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.267 GMT] Loaded module: discord/handlers/streamElementsHandler.js (Enabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.280 GMT] Loaded module: discord/handlers/keywordHandler.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.307 GMT] Loaded module: discord/handlers/tipeeeStreamHandler.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.332 GMT] Loaded module: discord/handlers/bitsHandler.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.368 GMT] Loaded module: discord/handlers/gamewispHandler.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.380 GMT] Loaded module: discord/handlers/twitterHandler.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.399 GMT] Loaded module: discord/handlers/clipHandler.js (Enabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.429 GMT] Loaded module: discord/handlers/subscribeHandler.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.455 GMT] Loaded module: discord/handlers/streamlabsHandler.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.579 GMT] Loaded module: discord/handlers/hostHandler.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.602 GMT] Loaded module: discord/systems/greetingsSystem.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.613 GMT] Loaded module: discord/systems/pointSystem.js (Disabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.667 GMT] Loaded module: discord/commands/customCommands.js (Enabled)
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.724 GMT]
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.725 GMT] For support please visit: https://community.phantombot.tv
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.725 GMT]
May 25 23:39:43 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:43.748 GMT] Connecting to Twitch WS-IRC Server (SSL) [irc-ws.chat.twitch.tv]
May 25 23:39:44 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:44.517 GMT] Connected to [email protected] (SSL)
May 25 23:39:44 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:44.758 GMT] Channel Joined [#pairedprototype]
May 25 23:39:45 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:45.013 GMT] PhantomBot ready!
May 25 23:39:45 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:45.130 GMT] Connected to Twitch Host Data Feed
May 25 23:39:45 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:39:45.152 GMT] Data Render Service API Key Present, Enabling Data Feed
May 25 23:40:05 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:40:05.140 GMT] >> Enabling hosts announcements
May 25 23:40:05 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:40:05.200 GMT] >> Enabling follower announcements
May 25 23:59:45 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:59:45.155 GMT] DataRenderService: Processing Data (see event logs for details)
May 25 23:59:47 PhantomBot launch-service.sh[26883]: [05-25-2018 @ 21:59:47.659 GMT] DataRenderService: Data has been Processed

Default page screen shot


#5

Upon further investigation… I completely looked overlooked the :80 being applied to the URL when tapping the panel button. Removing it allows the page to load (I guess this could be reported as a bug too? Since port 80 is default anyway, but being there specifically might stop the connection upgrade to 443? I’m not sure on that though). The HTTPS badge still shows in red for no apparent reason as well.

However, it seems websockets are also still broken as I get this error in the (Chrome) console when visiting the panel page (after removing :80 from the URL):

WebSocket connection to 'wss://mydomain.com:25004/' failed: WebSocket is closed before the connection is established.

Though, I assume that issue maybe my firewall settings. Which defeats trying to proxy it through Nginx…


#6

Can you show me your nginx configuration? I got this to work without any issues.


#7

So I manage to fix the web socket problem on the panel page by getting Nginx to listen on baseport+4 and then proxy that to the PB server on baseport+4. Ideally it would have been nice to push that though port 80 to Nginx and then to the PB server on baseport+4, but it works, so I’m not too bothered lol. I understand there’s likely a reason for this in the underlying code. I guess I’d just need to replicate this for the YTP page using baseport+3 instead.

After restarting Chrome, the red HTTPS badge magically vanished, probably a Chrome bug caching that from when there was mixed content. But on the sign-in page where you provide the username and password to login, this has neither a green nor red badge, just blank. Clicking that shows a message saying the connection is not sure. Do you have any ideas as to what might be causing that? I see no errors in the Chrome console either.

A final question I have now is could we get the links to the other web pages to only add a port if it exists in the current URL? i.e. maybe use window.location.port to build the URL for the link.


#8

WebSocket ports are different and can be customized within PhantomBot, which is why we don’t use location.port.

The badge isn’t shown on the “login” page because it isn’t really a page, it’s a prompt box.


#9

WebSocket ports are different and can be customized within PhantomBot, which is why we don’t use location.port.

I meant the links on the index webpage to the panel and YTP pages. Clicking the panel link results in a URL of https://mydomain:80/panel requiring me to remove the :80 every time for the page to load. It’s more of a convenience thing.

The badge isn’t shown on the “login” page because it isn’t really a page, it’s a prompt box.

Ah I see, is it still safe to assume the connection is secure then?


#10

I’ll be honest, I never use the default base page, so sorry for not noticing that. I do see what you mean though, and I’ll look into pushing a fix.

As for the login prompt, your username and password and sent through headers, which are automatically encrypted with SSL, so yes; the connection is secured there.


#11

Replicating the proxy forwarding seemed to work fine for the YTP page as well.

Thanks for the help with my issues! Should I submit a feature request for that small change on the base index page?


#12

You’re welcome. I’ll handle updating the port issue, making a feature request will probably result in it getting denied since it’s not an “official” feature of PhantomBot.


#13

Fixed in 1c6a3e2


#14

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.