This is a api proxy who add authentication and caching to api calls.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andreas Peters 0d76f3bec3
add missing ca certificates
2 months ago
.gitignore add dockerfile and change os variables 8 months ago
Dockerfile add missing ca certificates 2 months ago
LICENSE first in 8 months ago
README.md update readme and refactor the docker image 2 months ago
app.go use api_token only if its set 6 months ago
init.go add dockerfile and change os variables 8 months ago
sonar-project.properties add reverseproxy functionality 8 months ago

README.md

go-apiproxy

This is a api proxy written in go. To use it is very simple.

API_TOKEN=thisisapitokenforaservice
API_URL=https://api.service.nothing

docker run -e API_TOKEN=$API_TOKEN -e API_URL=$API_URL -p 10777:10777 avhost/go-apiproxy:latest

After that, you can use this container as api endpoint without authentication header. It will add the authentication header and forward all requests to the API_URL.

Why this container! Well, in some cases its not a good idea to give a service direct access to a outside API. And sometimes there are some services they cannot handle token authentication.