How to configure authentication and ssl on ipfs gateway port 8080?

Hey there,

Is it possible to set basic authentication and configure ipfs gateway on https?
I was able to achieve it on ipfs-cluster API Endpoint 9094 using below

“restapi”: {
“ssl_cert_file”:"/var/tmp/server.crt",
“ssl_key_file”:"/var/tmp/server.key"
}

I want to know how to configure the same for gateway port 8080

It’s not possible for the ipfs gateway. You need to put nginx or some other reverse proxy in front of it to do this.

2 Likes

@hector @dmellos on the same HTTPS-HTTP proxying task I encountered a very strange problem with Apache described here: Apache as HTTPS Reverse Proxy for IPFS Node: memory leak

Could you please have a look at this? I really need to find a way to resolve this… Sorry for spamming here, but I already created another question.