adminio-ui icon indicating copy to clipboard operation
adminio-ui copied to clipboard

Access UI over HTTPS

Open jacklauret opened this issue 4 years ago • 1 comments

I have been looking to access the aminio-ui via HTTPS but have been unsuccessful. It is possible to add certificates and use TLS with minio itself but accessing the adminio-ui is still via http. I've tried to add the certificates to /etc/ngnix/certs via a mounted volume but that does not seem to work.

It would be cool if we had an option to add certificates and enable TLS from an environment variable.

jacklauret avatar Nov 24 '20 11:11 jacklauret

hi @jacklauret there is no config parameters for that, cause target platform for running is kubernetes and ssl/tls certs can be configured at ingress deployment. But anyway i will search how to implement this as config parameters. By now you have two ways to achieve that:

  1. You can git clone or download zip of this repo and replace content of nginx/default.template with lines below, then rebuild the image with docker build.
server {
    listen ${NGX_PORT} ssl;
    server_name         www.example.com;
    ssl_certificate     /path/to/cert.crt;
    ssl_certificate_key /path/to/cert.key;
    ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers         HIGH:!aNULL:!MD5;

    location ${NGX_ROOT_PATH} {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
        try_files $uri$args $uri$args/ $uri $uri/ /index.html =404;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }
}

  1. Mount config directory /etc/nginx/conf.d/ and change it manually at /etc/nginx/conf.d/default.template

rzrbld avatar Nov 24 '20 13:11 rzrbld