Coder Social home page Coder Social logo

slve / cloud-function-custom-domain Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 54 KB

This is a simple example to demonstrate how to create cloud function and more importantly to reach it out through a custom domain.

JavaScript 4.07% Shell 95.93%

cloud-function-custom-domain's Introduction

Goal

This is a simple example to demonstrate how to create cloud function and more importantly to reach it out through a custom domain.

Once https://issuetracker.google.com/issues/36155827?pli=1 is resolved the need to create all the wiring, like reserved ip, network endpoint group, backend service, url-map and forwarding rule would be obsolete; but up until then we are left with the solution described in https://cloud.google.com/load-balancing/docs/https/setting-up-https-serverless, whereas this example serves as a proof of concept.

Quick start

PROJECT_ID=... DNSZONE=... DNSNAME=... ./setup.sh

Note: Once the setup ran fine, you need to wait till the SSL certificate becomes active, which may easily take up to 15 minutes; plus maybe a minute or two before you will be able to successfully reach out your function.

curl your.custom.domain -iv

Custom function

rm -rf functions/
firebase init functions

Cleanup

./teardown.sh

References

Further readings

cloud-function-custom-domain's People

Contributors

slve 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.