{"id":21117968,"url":"https://github.com/hitalos/minioup","last_synced_at":"2025-07-08T20:31:01.687Z","repository":{"id":226657131,"uuid":"769310728","full_name":"hitalos/minioUp","owner":"hitalos","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-13T17:18:19.000Z","size":174,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-13T17:35:39.948Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hitalos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-08T19:28:35.000Z","updated_at":"2024-11-13T17:18:23.000Z","dependencies_parsed_at":"2024-04-24T02:34:01.763Z","dependency_job_id":"683070ad-5fd7-44ab-801c-97d9975c3948","html_url":"https://github.com/hitalos/minioUp","commit_stats":null,"previous_names":["hitalos/minioup"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitalos%2FminioUp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitalos%2FminioUp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitalos%2FminioUp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hitalos%2FminioUp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hitalos","download_url":"https://codeload.github.com/hitalos/minioUp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225459358,"owners_count":17477560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T02:49:54.590Z","updated_at":"2024-11-20T02:49:57.939Z","avatar_url":"https://github.com/hitalos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minio Uploader\n\nWeb interface to upload files to AWS S3 or [Minio](https://min.io/) (AWS S3 compatible self-hosted service).\n\nYou can try this project with a local instance of [Minio](https://min.io/). There is a task on `Makefile` (minio-server) to run a local container. You will need [docker](https://www.docker.com) or [podman](https://podman.io) to run it. After start your minio container, access it on `http://localhost:9000` and create your buckets.\n\n## Installing\n\n```shell\ngo install github.com/hitalos/minioUp/cmd/minioUp@latest\n```\n\n## Configuration\n\nCreate a `config.yml` file in the current directory. Use this [`config.example.yml`](config.example.yml) as a reference.\nThe `params` will be used to rename the uploaded files using [golang template](https://golang.org/pkg/text/template/) syntax with [sprig](https://masterminds.github.io/sprig/) package functions.\n\n## Run\n\n```shell\nminioUp \u003cpath-to-file\u003e \"\u003cparams\u003e\"\n```\n\nImportant: the \"params\" is mandatory, even if empty. Why the command wait for pairs.\n\nAfter uploading, the command will list the files in the destination for you to check.\n\nUse:\n\n```shell\nminioUp -l\n```\n\nTo only list the files in the destination.\n\nP.S.: If you running `minioUp` without a \"standard input\" (ex.: inside a crontab script), it will always choose the first destination, without asking.\n\n## Examples\n\nConsidering the following configuration:\n\n```yaml\nport: \":8000\"\nendpoint: minio.domain.com\nsecure: false\naccessKey: minio\nsecretKey: minio\nallowedHosts:\n  - localhost:8000\n\ndestinations:\n  - bucket: uploads\n    prefix: \"2024/03\" # optional\n    name: \"uploads - march\" # will be showed as \"uploads - march\" on menu\n    allowedTypes: [\"jpg\", \"png\", \"pdf\"]\n    template: # optional\n      model: \"{{ lower (index . 0) }}\"\n      pattern: \"regex pattern\" # optional\n      example: \"placeholder text\" # optional\n      description: \"label description text\" # optional\n    webhook: # optional\n      url: https://yourwebhookurl.com/api/webhook\n      method: POST # optional\n      headers: # optional\n        key1: value1\n        key2: value2\n      fields: # optional\n        key1: value1\n        key2: value2\n```\n\nWith the following command:\n\n```shell\nminioUp FILE.PDF \"\"\n```\n\nThe file will be uploaded to `uploads` bucket with the original name (`FILE.PDF`) and a prefix `2024/03`.\n\nIf you define the destination `template` to `tmp_{{ lower (index . 0) }}`, the file will be renamed to `tmp_file.pdf`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitalos%2Fminioup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhitalos%2Fminioup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhitalos%2Fminioup/lists"}