From Free Knowledge Free Technology Wiki
Revision as of 22:45, 19 September 2017 by Chris (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Install Minio server

Create minio user

   adduser --disabled-login --shell /usr/sbin/nologin --home /opt/minio minio

Install minio

   cd /opt/minio
   chmod +x minio
   mkdir /opt/minio/config
   mkdir /opt/minio/data
   chown -R minio /opt/minio

Start minio at boot with supervisor

   apt-get install supervisor

Config /etc/supervisor/conf.d/minio.conf

   command = /opt/minio/minio server -C "/opt/minio/config/" "/opt/minio/data/"
   directory = /opt/minio/
   autorestart = True
   user = minio
   /etc/init.d/supervisor restart

Install Minio server using nginx and letsencrypt cert.

Configurar nginx

   server {
        listen             80;
        return             301 https://$server_name$request_uri;
   server {
       listen              443 ssl;
           ssl_certificate      /etc/letsencrypt/live/;
           ssl_certificate_key  /etc/letsencrypt/live/;
           location / {
               client_max_body_size        1000m;
               client_body_buffer_size     1000m;
               proxy_pass             http://localhost:9000/;
               proxy_set_header       Host $host;
           access_log /var/log/nginx/minio.access.log;
           error_log /var/log/nginx/minio.error.log notice;

Find you access keys here


Create Bucket and prefix (read/write) at