Skip to content
This repository has been archived by the owner on Nov 1, 2018. It is now read-only.
/ gcsproxy Public archive
forked from daichirata/gcsproxy

Reverse proxy for Google Cloud Storage

License

Notifications You must be signed in to change notification settings

rootfs-dev/gcsproxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcsproxy

Reverse proxy for Google Cloud Storage.

Description

This is a reverse proxy for Google Cloud Storage for performing limited disclosure (IP address restriction etc...). Gets the URL of the GCS object through its internal API. Therefore, it is possible to make GCS objects private and deliver limited content.

 +---------------------------------------+
 |                Nginx                  |
 |    access controll (basic auth/ip)    |
 +-----+---------------------------------+
       |
-----------------------------------------+
       |
       |
+------v-----+          +---------------+
|            |          |               |
|  gcsproxy  | +------> | Google Cloud  |
|            |          |    Storage    |
+------------+          +---------------+

Useage

Usage of gcsproxy:
  -p string
    	Listen port (default ":8080")
  -c string
    	The path to the keyfile. If not present, client will use your default application credentials.
  -v	Show access log

make
# command line
bin/gcsproxy -c /etc/gcs.json -v
# docker run
docker run  -ti -p 8080:8080 -v /etc/gcs.json:/etc/gcs.json gcsproxy /usr/bin/gcsproxy -c /etc/gcs.json -v
# test
curl -v wget http://127.0.0.1:8080/<bucket>/<object>

About

Reverse proxy for Google Cloud Storage

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 82.0%
  • Makefile 10.5%
  • Shell 5.1%
  • Dockerfile 2.4%