Blaizzy / fastmlx

FastMLX is a high performance production ready API to host MLX models.
Other
159 stars 12 forks source link

(0.1) Uvicorn running on http://0.0.0.0:8000 #12

Closed stewartugelow closed 2 months ago

stewartugelow commented 2 months ago

Uvicorn is running on http://0.0.0.0:8000 instead of http://localhost:8000

Perplexity tells me this is a potential security risk?

Running a server on0.0.0.0makes it accessible from any IP address, which can be a security risk if the server is exposed to the public internet. Ensure that you have appropriate security measures in place, such as firewalls, authentication, and encryption, to protect your server.

Blaizzy commented 2 months ago

You can customize the host by passing it on start:

fastmlx --host 127.0. 0.1 

or

fastmlx --host localhost
stewartugelow commented 2 months ago

Sorry, what I meant to say was: in the original version, it ran on localhost. In the new version, it runs on 0.0.0.0. I wanted to flag it for you in case this wasn't an intentional change.