Thanks for that! Last thing, I have cloudflare in the middle of all of this. Cleared cache/hosting api on port 2053. Site loads and works using the separate files for web. Apache serves it well.
I can login and check out things just fine. However, even after clearing cache and making sure my seetings in config.json
were correct, I’m getting mixed content warnings on everything that isn’t the dashboard.
From the web console:
raven.js:1417 Mixed Content: The page at 'https://admin.thebobsgamingnetwork.net/admin/commands' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://admin.thebobsgamingnetwork.net:8080/api/v5/history/cmd?details&&key=[hidden]'. This request has been blocked; the content must be served over HTTPS.
(anonymous) @ raven.js:1417
m._end @ client.js:772
m.end @ client.js:676
(anonymous) @ request-base.js:238
o.then @ request-base.js:237
(anonymous) @ api.ts:250
requestList @ index.tsx:341
t.componentDidMount @ index.tsx:62
Ya @ react-dom.production.min.js:219
Va @ react-dom.production.min.js:212
Ga @ react-dom.production.min.js:211
Ba @ react-dom.production.min.js:211
qa @ react-dom.production.min.js:209
ga @ react-dom.production.min.js:207
enqueueSetState @ react-dom.production.min.js:148
O.setState @ react.production.min.js:12
t @ index.js:205
(anonymous) @ index.js:215
Promise.then (async)
n._loadModule @ index.js:214
n.componentWillMount @ index.js:168
li @ react-dom.production.min.js:152
Ai @ react-dom.production.min.js:175
da @ react-dom.production.min.js:202
ha @ react-dom.production.min.js:203
Va @ react-dom.production.min.js:212
Ga @ react-dom.production.min.js:211
Ba @ react-dom.production.min.js:211
ns @ react-dom.production.min.js:223
An @ react-dom.production.min.js:89
s @ rocket-loader.min.js:1
raven.js:1417 Mixed Content: The page at 'https://admin.thebobsgamingnetwork.net/admin/commands' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://admin.thebobsgamingnetwork.net:8080/api/v5/cmd?details&&key=[hidden]'. This request has been blocked; the content must be served over HTTPS.
What’s weird is that it seems its trying to request data from http even though the dashboard pulls all data via https.
I can curl just fine now though.
$ curl -XPOST -H 'x-webapi-key: //////' -H "Content-type: application/json" -d '[
{
"command": "say hello",
"name": "donator-bot",
"waitLines": 0,
"waitTime": 20
}
]' 'https://admin.thebobsgamingnetwork.net:2053/api/v5/cmd'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 130 100 45 100 85 45 85 0:00:01 --:--:-- 0:00:01 333
[{"ok":true,"cmd":"say hello","response":[]}]
Here’s my config
window.config = {
"basePath": "/admin/",
"servers": [{
"name": "Lapitos-Galacticraft",
"apiUrl": "http://admin.thebobsgamingnetwork.net:8080",
"apiUrlHttps": "https://admin.thebobsgamingnetwork.net:2053",
}]
};