Closed PhlexPlexico closed 3 years ago
So, a few things in regards to the setup in the G5API:
1) Make sure you have a secure session key. That is used for storing sessions in the redis instance you have running. This is to ensure no one can just send fake requests and high-jack a session.
2) May wanna cover the db key or redo it as well, just in case.
3) Main problem for this is your apiURL. If you're setting this up to run G5V on a subdomain, you need change that API url to:
"apiURL": "http://g5v.xe1os.com/api/"
This is because G5V has a reverse proxy in the vue webpack which points back to the API locally. This is mainly for match setup and sending configs to a CS:GO server. But your problem doesn't lie here and I've been meaning to make this change to the vue.config.js
file. The current setup I have is mainly for dev, but I believe the new following change can work.
Under devServer
, you need to add an additional option since you are technically trying to connect outside of the localhost. So, add the following to your config:
public: "g5v.xe1os.com:80",
This should resolve the issue after it reloads.
Since I've put the value in the vue.config.js
I'm going to close this, it's under the value PLEASECHANGEME
. Just change it to your public facing URL and you should be off to the races.
@PhlexPlexico Thank you! It is working now :)
@xe1os if it's an issue with G5V please post it here, thanks :)