GithubHelp home page GithubHelp logo

eoger / pushbox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla-services/pushbox

0.0 2.0 0.0 72 KB

Durable Storage for Push

License: Mozilla Public License 2.0

Python 92.74% Shell 7.26%

pushbox's Introduction

Pushbox Prototype

This is a work in progress of the serverless PushBox supplimental sync storage service using the serverless framework

requirements:

Please note, Severless currently does not support python "offline", you will have to sls deploy in order to test. (Remember to run sls remove after to clean up.)

See API doc

Installation:

$ npm install serverless
$ npm install serverless-python-requirements
$ npm install serverless-domain-manager --save-dev

Deploying

packaging

Images must stay less than about 200K. You should aggressively exclude anything that is not absolutely necessary. Only directories and explicit full file paths can be excluded.

domain-manager

Unfortunately, there are a number of bugs with domain-manager.

  1. It will look for the first certificate for a given domain match, ths may result in it pulling an expired (or soon to be expired) cert from the certificate manager. Apparently, you can't specify an ARN for a valid certificate.
  2. The cert MUST be in the region that you're deploying to.

Deploy command

sls deploy [-s stage] [--fxa fxa_auth_server]

-s optionally changes the stage from dev

--fxa optionally changes the fxa_auth_server_host from oauth_stage_mozaws.net

Post deploy steps

You can specify the stage you want to deploy using the -s command line argument. If you do not specify, the default value for stage is dev.

  • Go to the Amazon API Gateway:Custom Domain Names section

  • Create a Custom Domain Name

  • Set the Domain Name to match your desired host name (e.g. pushbox.dev.mozaws.net) You may want to verify the cert identifier from ACM

  • Set the Base Path Mappings

    • Leave Path empty
    • Set Destination to match your new API instance which is $stage-pushbox(...).
    • Set the Stage to match your deployed stage
  • Click Save

It may take up to 40 minutes before the domain is available.

pushbox's People

Contributors

bbangert avatar jrconlin avatar eoger avatar pjenvey avatar vladikoff avatar

Watchers

James Cloos avatar  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.