Giter VIP home page Giter VIP logo

autogcf's Introduction

MAD BECAUSE "." ISNT SUPPORTED ON GCF URLS

This prevents an index.html so defeats the purpose of this tool, which was finished by the time I realized

This is likely because GCF's backend is Cloud Run, which uses a subdomain as opposed to a path to host the function. (Meaning that GCF is not native functions, rather a wrapper!!!!).

Lucky for me, I spent 2 whole days on this. Not sure if that's a lot or not but I'm sure I could've popped off on siege I guess


AutoGCF

Automatically serve files from Google Cloud Functions (FOR FREE*)

This tool can be ran in Google Cloud Shell to make it easier

FREE* only if your file sizes and traffic is reasonable (<5gb bandwidth, <2mil visits per month)

Usage:

  • Install this with go get github.com/nevadex/autogcf
  • Ensure gcloud is set up, and the correct account and project is set
  • Run autogcf -h to see all options

Limitations:

  • Root-level files in your website source cannot have extensions. However, files in directories CAN have extensions.

The best usage of this tool is to host your static assets, even regionally, like a cdn type of thing.

I highly recommend you read Google's docs on GCF before using this. It really could be a good, free CDN for your shiz.

autogcf's People

Contributors

nevadex avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.