Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API address should be configurable through an environment variable #23

Closed
ioj opened this issue Feb 28, 2017 · 3 comments
Closed

API address should be configurable through an environment variable #23

ioj opened this issue Feb 28, 2017 · 3 comments

Comments

@ioj
Copy link
Contributor

ioj commented Feb 28, 2017

Also make sure that the default API address doesn't point to localhost:
image

@phob0s-pl
Copy link
Contributor

What should be name of the environment variable you want to use? ASOC_SERVER ?

@ioj
Copy link
Contributor Author

ioj commented Feb 28, 2017

ASOC_API_URL

@phob0s-pl
Copy link
Contributor

Done

[root@muertos namescore]# ASOC_API_URL=http://6.6.6.6:6661 go run namescore.go status
 Namescore version:        0.1
 Configuration status:     /home/phob0s/alphasoc/namescore.toml OK
 Whitelist file:           /home/phob0s/alphasoc/whitelist.toml not exist
 Alerts file:              /home/phob0s/alphasoc/namescore.log OK
 Network interface to use: enp3s0
 API key status:           valid
 Connection with AlphaSOC: Get http://6.6.6.6:6661/v1/account/status: dial tcp 6.6.6.6:6661: getsockopt: network is unreachable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants