Skip to content

Repository files navigation

fileuploader

Table of Contents
  1. About The Project
  2. Getting Started

About The Project

This service is used to upload file in server. This service can be used for uploading config files needed for prometheus, consul etc.

getting-started

Built With

golang

installation

step 1. download from releases.

step 2. start the service as shown below

./fileuploader -dest /tmp/configs

usage

 ./fileuploader -h
--version
returns application version
--dest string
(required) destination directory, should not be root /
--port string
overwrite default port (default "3000")
--tls-crt string
certificate path, only needed for ssl service
--tls-key string
key path, only needed for ssl service
--viewmode
/view will be enabled to view all the files in destination directory
--log-file
writes all the log messages to a file

example

  1. uploading file in default destination directory
curl -F "data=@test.yml" http://localhost:3000/upload
  1. uploading file in user defined destination directory. This path will be appended in default destination.
curl -F "data=@test.yml" -F "dest=/tmp/downloads" http://localhost:3000/upload
  1. returns application health check
curl http://localhost:3000/health
  1. Metrics for Prometheus
curl http://localhost:3000/metrics

About

used to upload the files. can be used for config files needed for prometheus, consul etc.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages