Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access UI over HTTPS #21

Open
jacklauret opened this issue Nov 24, 2020 · 1 comment
Open

Access UI over HTTPS #21

jacklauret opened this issue Nov 24, 2020 · 1 comment

Comments

@jacklauret
Copy link

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.

@rzrbld
Copy link
Owner

rzrbld commented Nov 24, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants