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

Can the addresses in .env be passed at runtime? #225

Closed
zyfdegh opened this issue Apr 12, 2018 · 2 comments
Closed

Can the addresses in .env be passed at runtime? #225

zyfdegh opened this issue Apr 12, 2018 · 2 comments
Labels

Comments

@zyfdegh
Copy link
Contributor

zyfdegh commented Apr 12, 2018

Question

Do the URL MYSTERIUM_API_URL and NATS address NATS_SERVER_IP be set at runtime like this?

docker run -e MYSTERIUM_API_URL=XXX -e NATS_SERVER_IP=XXX

Issue

Currently, if we set .env like below and build the server(Mysterium Node) image.

MYSTERIUM_API_URL=https://api.mysterium.network/
NATS_SERVER_IP=127.0.0.1

And then run the image on the server, an error will occur

2018-04-12T03:40:51.04043973 [Info] [openvpn binary check] Process exited with error: exit status 1
2018-04-12T03:40:53.998814509 [Error] [Mysterium.api] Post https://api.mysterium.network//identities: dial tcp: lookup api.mysterium.network on 8.8.8.8:53: no such host
Post https://api.mysterium.network//identities: dial tcp: lookup api.mysterium.network on 8.8.8.8:53: no such host

I know I should replace api.mysterium.network with my own API server, but I need to rebuild the server image after I create a Mysterium API server. How to solve it? Can we pass the addresses at the runtime?

@stale
Copy link

stale bot commented Oct 2, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 2, 2018
@stale
Copy link

stale bot commented Dec 1, 2018

This issue has been automatically closed because it has not had activity for a long time. If this issue is still valid, please ping a maintainer and ask them to label it as "pinned". Thank you for your contributions.

@stale stale bot closed this as completed Dec 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant