csfloat / inspect

Source Code that Powers the CSFloat Inspect Link API
https://csgofloat.com
MIT License
392 stars 118 forks source link

Maybe stupid question about the IP #215

Closed Magnus-T-Holm closed 4 months ago

Magnus-T-Holm commented 4 months ago

I have what might be a stupid question, but I haven't been able to get this to work fully and I want to make sure I'm not doing something wrong.

When I make a get requests with http://<ip>:<port>/?url=..., should the ip be "localhost" if I'm running it locally on my PC or should it be something else? Also is the port the same port that we write in the config.js under // Configuration for the HTTP API server?

wangxingzhen commented 4 months ago
you can use 'localhost' or '127.0.0.1'
wangxingzhen commented 4 months ago

「Also is the port the same port that we write in the config.js under // Configuration for the HTTP API server?」 YES

Magnus-T-Holm commented 4 months ago

Okay, thank you for the information.

Then I guess I've messed something up with either postgreSQL or written something wrong in the config file.