Git Product home page Git Product logo

Comments (3)

lover-shadow avatar lover-shadow commented on June 14, 2024

“I can access xxx.xx.xx:3001 on the internal network from the outside using NAT, but I can only open the page and not respond. Everything is normal on the internal network. What could be the problem?

from pandoraai.

timefox avatar timefox commented on June 14, 2024

It's not a good idea to expose the original 'node-chatgpt-api' server on internet. Because it lacks a verification mechanism, this means that anyone can access it without restrictions.
But if you really want to do this, you can:
1.find out ${config.apiBaseUrl} in 'components/Chat.vue', replace it with your 'external IP address'. you need to modify the setting of 'node-chatgpt-api' server also, to make it run at the same 'external IP address'.
or
2. find out ${config.apiBaseUrl} in 'components/Chat.vue', replace it with a redirect path like '/chatapi/'. and then configure the reverse proxy on the server to access it.

from pandoraai.

waylaidwanderer avatar waylaidwanderer commented on June 14, 2024

It's not a good idea to expose the original 'node-chatgpt-api' server on internet. Because it lacks a verification mechanism, this means that anyone can access it without restrictions.

It's fine if you don't set an API key and have the user do it themselves via PandoraAI instead, though :)

from pandoraai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.