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

I don't think it's a good idea to convert the domain into IP in the Dockerfile. #1076

Closed
cddc opened this issue Apr 25, 2023 · 5 comments
Closed

Comments

@cddc
Copy link

cddc commented Apr 25, 2023

          I don't think it's a good idea to convert the domain into IP in the Dockerfile. 

host=$(nslookup $host | grep -A1 'Name:' | tail -1 | awk '{print $2}')

It means the IP address will be fixed, once the container is started. However, in some cases, the results of DNS will be change.

So, is there a better way to solve this problem? Mayby, the nslookup should be used for each of the proxy connection?

Originally posted by @cddc in #1052 (comment)

@weicun581
Copy link

weicun581 commented Apr 28, 2023

good suggestions,when i use docker to deploy this project:
docker run -d -p 3000:3000 \ -e OPENAI_API_KEY="sk-WkwhxqGGVouxHeDTF6cPlb" \ -e CODE="123" \ -e PROXY_URL="http://127.0.0.1:7890" \ yidadaa/chatgpt-next-web
i got the error :
{ "cause": { "errno": -111, "code": "ECONNREFUSED", "syscall": "connect", "address": "224.0.0.1", "port": 443 } }

@bigsk1
Copy link

bigsk1 commented May 3, 2023

@weicun581 you do know your api key is shown in your post right... :)

@weicun581
Copy link

@weicun581 you do know your api key is shown in your post right... :)

😂😂😂forgot to hide the key, thanks for the remind

@Yidadaa
Copy link
Collaborator

Yidadaa commented May 19, 2023

No perfect solution yet, so I decide to leave it as no change.

@Yidadaa Yidadaa closed this as completed May 19, 2023
@Yidadaa
Copy link
Collaborator

Yidadaa commented May 19, 2023

Related discussion: #1569

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

4 participants