I know why is failing, I am behind a proxy/firewal...
# random
m
I know why is failing, I am behind a proxy/firewall, but I wonder why on every command, this prisma cli is trying to call the cloud?
j
What is the endpoint in your prisma.yml?
m
it is a local docker image
j
So in your prisma.yml file you have the following:
Copy code
...
endpoint: <http://localhost:4466/gl-clinic/dev>
...
?
d
You should be able to using Prisma behind a proxy. This is not documented yet but you can do something like
Copy code
$ npm install -g proxy
$ DEBUG="*" proxy -p 8080
$ HTTP_PROXY=<http://localhost:8080> HTTPS_PROXY=<https://localhost:8080> prisma deploy
👍 1
j
Did not know you could do that! Learned something as well!
👍 1
d
m
Hi @Jenkins and @divyendu thanks for the comments.
j
De nada! Happy to 'help' in this case 🙂
m
The CLI commands seem to be working behind a proxy, It does show the error and it looks weird but it seems to be deploying the changes
I just have the question of: if I am working locally only - on a docker setup - why is the command trying to call the cloud “api.cloud.prisma.sh”
I asked for 2 reasons, #1 is Security, I want to make sure there is no info trying to go out
and #2 is I am hoping to talk to the architects to possible try to implement graphql and this prisma tooling seems like and awesome way to go about it
Gracias! for your time
@Jenkins yes that is what I have in my prisma.yml file, that is why I don’t understand why it seems the cli is trying to call “api.clould.prisma.sh”, when running behind a proxy, the deploy command works - deploying to local docker - but I see the error of this other call being blocked., what thoes the cli do with “api.cloud.prisma.sh”?
d
I think that the CLI just checks if you are logged in or not.. because certain other code paths need it.
This might still be a residue from before, as making it offline was added as a feature later.
In later versions of CLI this error should not be there. Which Prisma CLI version do you use?
m
Hi @divyendu I am using version 1.8.3
your comments gives me comfort, thank you, for security reasons having it be offline seems like something awesome
since I am working on a project I dont want to update the version to often to avoid some breaking change.
If I am not mistaken, version 1.9.0 should have the this change in
3fca651 fix offline endpoint handling. Closes #865
I dont see any breaking change so I will upgrade, thanks for the help @divyendu this is an awesome tool
🙌 1
d
Also, generally, the app still sends some basic stuff, but if you are concerned about security, feel free to block the prisma endpoint on the machine by pointing it to 127.0.0.1 - also, feel free to create a new issue for a feature where Prisma CLI does not talk to cloud API at all 🙂
👍 1
m
👍