adminio-ui
adminio-ui copied to clipboard
Access UI over HTTPS
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.
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:
- You can
git cloneor download zip of this repo and replace content ofnginx/default.templatewith lines below, then rebuild the image withdocker 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;
}
}
- Mount config directory
/etc/nginx/conf.d/and change it manually at/etc/nginx/conf.d/default.template