Skip to content

Proxy your Google Cloud Storage Download, and protect with basic auth in blazingly fast !

Notifications You must be signed in to change notification settings

guaychou/gcs-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0010a7f · Apr 25, 2023

History

62 Commits
Apr 25, 2023
Apr 22, 2023
Apr 5, 2023
Apr 22, 2023
Apr 5, 2023
Mar 5, 2023
Mar 5, 2023
Apr 22, 2023
Feb 11, 2023
Feb 19, 2023
Mar 5, 2023
Feb 11, 2023
Feb 11, 2023

Repository files navigation

GCS Proxy

ci


GCS proxy is tools to download file in google cloud storage without knowing the google cloud storage url, and abstract it with http basic auth feature in rust

Routes

  • /_/download/{file_name}

Example Yaml Config

log_level: info # debug / info / warn / error
server:
  http:
    port: 8080
    shutdown_timeout: 30
  gcs:
    bucket: kepintez
    folder: "folder_to_jail"
    # service_account_b64: "exampleofbase64sa"
  auth:
    username: pogpog
    password: pogpog

Environment Variable

  • GCS_SA_B64 --> GCP Service Account Base64 encoded from json
  • CONFIG_PATH --> Path to config file

How to run example

$ docker run -p8080:8080 -d -v "./config.yaml:/app/config.yaml" ghcr.io/guaychou/gcs-proxy:v1.0.0

Credit

  • Zero To Production for Architect the application code
  • Actix Web for the stable, blazingly fast, and battle tested web server written in rust with actor model

Maintainer