question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lets fix MinIO together !

See original GitHub issue

Hello, i need your help fixing MinIO app

The latest release of MinIO RELEASE.2021-08-05T22-01-19Z will not work with the current MinIO one-click-app

Because the api listens on port 9000 and the dashboard on 9001.

So if we enable SSL and set containerHttpPort to 9001 we would have HTTPS://minio.redacted.com, and if we open port 9000 we could use the api HTTP://minio.redacted.com:9000 as our s3 endpoint! but the problem is that this is not SSL enabled… Wish we could enable SSL on port 9000 or something

For now i have deployed using this

captainVersion: 4
services:
    $$cap_appname:
        volumes:
            - $$cap_appname-db-data:/data
            - $$cap_appname-config-data:/root/.minio
        restart: always
        environment:
            MINIO_ROOT_USER: $$cap_access_key
            MINIO_ROOT_PASSWORD: $$cap_secret_key
            MINIO_REGION_NAME: "eu-east-1"
            MINIO_BROWSER_REDIRECT_URL: https://$$cap_appname.$$cap_root_domain
            MINIO_SERVER_URL: http://$$cap_appname.$$cap_root_domain:9000
        ports:
            - 9000:9000
        caproverExtra:
            containerHttpPort: '9001'
            dockerfileLines:
                - FROM minio/minio:$$cap_minio_version
                - CMD ["server", "/data", "--console-address", ":9001"] #We can also change the api port 9000 with --address flag
caproverOneClickApp:
    variables:
        - id: $$cap_minio_version
          label: MinIO Version
          defaultValue: RELEASE.2021-08-05T22-01-19Z
          description: Check out their Docker page for the valid tags https://hub.docker.com/r/minio/minio/tags/
          validRegex: /^([^\s^\/])+$/
        - id: $$cap_access_key
          label: MinIO Access Key
          defaultValue: ''
          description: Username to access MinIO server
          validRegex: /.{5,}/
        - id: $$cap_secret_key
          label: Minio Secret Key
          defaultValue: ''
          description: Password to access MinIO server
          validRegex: /.{8,}/
    instructions:
        start: >-
            MinIO is a High Performance Object Storage released under GNU Affero General Public License v3.0. It is API compatible with Amazon S3 cloud storage service.
        end: Minio is deployed and available as $$cap_appname
    displayName: ''
    isOfficial: true
    description: MinIO is a cloud storage server compatible with Amazon S3
    documentation: Taken from https://docs.min.io/docs/minio-docker-quickstart-guide.html

With this we can access the dashboard at HTTPS://minio.redacted.com and s3 endpoint at HTTP://minio.redacted.com:9000

Without Caprover i can use my setup with nginx & goacme/lego using my repo https://github.com/kgnfth/minio-docker-certbot

With my repo i can access api using SSL https://s3.redacted.com

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Handfishcommented, Aug 19, 2021

@githubsaturn Your changes nginx proxy changes finally made the web-console login work properly, and the rest of minio as well. Everything looks good, I’m able to interact with it through the cli tool and create / delete buckets.

My deployment has SSL handled by a load balancer in front of Caprover, so my results can’t speak for everyone.

Thanks a lot to @kgnfth and @githubsaturn for their work!

2reactions
githubsaturncommented, Aug 19, 2021

Looks like there are some more headers that need to be added to the nginx proxy, see here:

I’ve update the nginx and pushed a new image under this tag: 1-ef5ffcb. So change your

caprover/nginx-reverse-proxy:latest

to

caprover/nginx-reverse-proxy:1-ef5ffcb

and try again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploy MinIO: Single-Node Single-Drive
The procedures on this page cover deploying MinIO in a Single-Node Single-Drive (SNSD) configuration for early development and evaluation. SNSD ...
Read more >
Build your own private cloud at home with Raspberry Pi + ...
Securing your Minio. Right now all the traffic between you and nstorage (your minio server) is unencrypted, let's fix that quickly, I used ......
Read more >
Get storage for your Serverless Functions with Minio & Docker
Let's talk a little about storage for Docker. ... two Serverless Functions for OpenFaaS that work together to process images in a pipeline....
Read more >
Validating data flow from your MinIo s3 object storage ...
Putting it all together. Hurray! we have both our application code and our test ready. Before we run the test, let's ensure that...
Read more >
minio/minio - Gitter
Next step is to release Minio server with multiple disks support (It will automatically ... rollback to previous one, let us fix this....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found