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