Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Off-topic
  3. Domain Configure for MinIO API

Domain Configure for MinIO API

Scheduled Pinned Locked Moved Solved Off-topic
6 Posts 4 Posters 6.4k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • arshsahzadA Offline
    arshsahzadA Offline
    arshsahzad
    wrote on last edited by
    #1

    I have created a docker container in the local machine, able to access the MinIO console from the Internet using Nginx reverse proxy but when I'm sharing files from the MinIO console, the generated URL is local IP, which is not accessible from the internet

    minio.png

    How could the localhost can be mapped with the domain?

    arshsahzadA BrutalBirdieB 2 Replies Last reply
    0
    • arshsahzadA arshsahzad

      I have created a docker container in the local machine, able to access the MinIO console from the Internet using Nginx reverse proxy but when I'm sharing files from the MinIO console, the generated URL is local IP, which is not accessible from the internet

      minio.png

      How could the localhost can be mapped with the domain?

      arshsahzadA Offline
      arshsahzadA Offline
      arshsahzad
      wrote on last edited by
      #2

      below is my docker-compose and .env config

      version: "3.7"
      services:
        minio:
          image: minio/minio:latest
          container_name: minio-demo
          restart: unless-stopped
          ports:
            - 9000:9000
            - 9001:9001
          networks:
            - nginx
          volumes:
            - ./volume/minio:/data
          env_file:
            - ./ENV/minio.env
          command: server --console-address :9001 /data
          #command: server --address 0.0.0.0:9001 /data
      
      networks:
          nginx:   
      

      minio.env

      MINIO_SITE_REGION=india
      MINIO_SITE_NAME=minio-demo
      MINIO_ROOT_USER=minioadmin
      MINIO_ROOT_PASSWORD=miniopass
      MINIO_ETCD_ENDPOINTS=https://localhost:9001
      
      1 Reply Last reply
      0
      • arshsahzadA arshsahzad

        I have created a docker container in the local machine, able to access the MinIO console from the Internet using Nginx reverse proxy but when I'm sharing files from the MinIO console, the generated URL is local IP, which is not accessible from the internet

        minio.png

        How could the localhost can be mapped with the domain?

        BrutalBirdieB Offline
        BrutalBirdieB Offline
        BrutalBirdie
        Partner
        wrote on last edited by
        #3

        @arshsahzad Sorry this is not a general Docker and Networking HelpDesk.

        But here are some thoughts.

        able to access the MinIO console from the Internet using Nginx reverse proxy

        Clear this up please, did you test to access this via the internet or local net.

        Cloudron is showing the api url:
        a805bafb-962c-4672-b9e4-e3ced963a466-image.png

        You could use https://nip.io/ to test what the text shows when accessing your local IP via a Domain.

        Example: https://172.21.0.2.nip.io

        Like my work? Consider donating a drink. Cheers!

        arshsahzadA 1 Reply Last reply
        0
        • BrutalBirdieB BrutalBirdie

          @arshsahzad Sorry this is not a general Docker and Networking HelpDesk.

          But here are some thoughts.

          able to access the MinIO console from the Internet using Nginx reverse proxy

          Clear this up please, did you test to access this via the internet or local net.

          Cloudron is showing the api url:
          a805bafb-962c-4672-b9e4-e3ced963a466-image.png

          You could use https://nip.io/ to test what the text shows when accessing your local IP via a Domain.

          Example: https://172.21.0.2.nip.io

          arshsahzadA Offline
          arshsahzadA Offline
          arshsahzad
          wrote on last edited by
          #4

          I got the solution for configuring the domain in the MinIO docker container:

          Just make these changes in the mino.env

          MINIO_SITE_NAME=***
          MINIO_SITE_REGION=***
          MINIO_ROOT_USER=***
          MINIO_ROOT_PASSWORD=***
          MINIO_SERVER_URL=https://api.example.com
          MINIO_BROWSER_REDIRECT_URL=https://minio.example.com
          
          girishG W 2 Replies Last reply
          2
          • arshsahzadA arshsahzad

            I got the solution for configuring the domain in the MinIO docker container:

            Just make these changes in the mino.env

            MINIO_SITE_NAME=***
            MINIO_SITE_REGION=***
            MINIO_ROOT_USER=***
            MINIO_ROOT_PASSWORD=***
            MINIO_SERVER_URL=https://api.example.com
            MINIO_BROWSER_REDIRECT_URL=https://minio.example.com
            
            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @arshsahzad indeed. BTW, you can also find such things from our packaging repo - https://git.cloudron.io/cloudron/minio-app . Those variables are set here - https://git.cloudron.io/cloudron/minio-app/-/blob/master/start.sh#L11

            1 Reply Last reply
            2
            • arshsahzadA arshsahzad

              I got the solution for configuring the domain in the MinIO docker container:

              Just make these changes in the mino.env

              MINIO_SITE_NAME=***
              MINIO_SITE_REGION=***
              MINIO_ROOT_USER=***
              MINIO_ROOT_PASSWORD=***
              MINIO_SERVER_URL=https://api.example.com
              MINIO_BROWSER_REDIRECT_URL=https://minio.example.com
              
              W Offline
              W Offline
              wjurry
              wrote on last edited by
              #6

              @arshsahzad This solved my problem too. Thank you!

              1 Reply Last reply
              0
              • nebulonN nebulon marked this topic as a question on
              • nebulonN nebulon has marked this topic as solved on
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search