What I ended up going with was the following:
defaults in the Go code are going to be for scheme = http , host = localhost, port = 80, and api_uri = " "
then the default .ini file will overwrite all of those with
api_uri is new, it goes in between port and the other *_uri params. For our prod server, it's the endpoint /api
this would allow for you to setup for local backend by either removing the [api] section or re -configuring it as needed.
but default out-of-the-box install behavior will be for production use by end users, sending data to statspilot.galibs.org and the proper URI as specified in the .ini
What I ended up going with was the following: defaults in the Go code are going to be for
scheme = http
,host = localhost
,port = 80
, andapi_uri = " "
then the default.ini
file will overwrite all of those withapi_uri
is new, it goes in between port and the other *_uri params. For our prod server, it's the endpoint/api
this would allow for you to setup for local backend by either removing the
[api]
section or re -configuring it as needed. but default out-of-the-box install behavior will be for production use by end users, sending data to statspilot.galibs.org and the proper URI as specified in the .ini