github.com/minio/console@v1.4.1/systemd/README.md (about)

     1  # Systemd service for MinIO Console
     2  
     3  Systemd script for MinIO Console.
     4  
     5  ## Installation
     6  
     7  - Systemd script is configured to run the binary from /usr/local/bin/.
     8  - Systemd script is configured to run the binary as `console-user`, make sure you create this user prior using service script.
     9  - Download the binary. Find the relevant links for the binary https://github.com/minio/console#binary-releases.
    10  
    11  ## Create the Environment configuration file
    12  
    13  This file serves as input to MinIO Console systemd service.
    14  
    15  ```sh
    16  $ cat <<EOT >> /etc/default/minio-console
    17  # Special opts
    18  CONSOLE_OPTS="--port 8443"
    19  
    20  # salt to encrypt JWT payload
    21  CONSOLE_PBKDF_PASSPHRASE=CHANGEME
    22  
    23  # required to encrypt JWT payload
    24  CONSOLE_PBKDF_SALT=CHANGEME
    25  
    26  # MinIO Endpoint
    27  CONSOLE_MINIO_SERVER=http://minio.endpoint:9000
    28  
    29  EOT
    30  ```
    31  
    32  ## Systemctl
    33  
    34  Download `minio-console.service` in  `/etc/systemd/system/`
    35  
    36  ```
    37  ( cd /etc/systemd/system/; curl -O https://raw.githubusercontent.com/minio/console/master/systemd/minio-console.service )
    38  ```
    39  
    40  Enable startup on boot
    41  
    42  ```
    43  systemctl enable minio-console.service
    44  ```
    45  
    46  ## Note
    47  
    48  - Replace ``User=console-user`` and ``Group=console-user`` in minio-console.service file with your local setup.
    49  - Ensure that ``CONSOLE_PBKDF_PASSPHRASE`` and ``CONSOLE_PBKDF_SALT`` are set to appropriate values.
    50  - Ensure that ``CONSOLE_MINIO_SERVER`` is set to appropriate server endpoint.