Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move google places busy times api to google cloud #87

Open
awwaiid opened this issue May 31, 2020 · 0 comments
Open

Move google places busy times api to google cloud #87

awwaiid opened this issue May 31, 2020 · 0 comments
Labels
infrastructure Getting stuff into and keeping it in production. DevOps.

Comments

@awwaiid
Copy link
Member

awwaiid commented May 31, 2020

Right now the lookup for busy times in a location is running off of @awwaiid 's server. We should move it to google cloud somehow.

Right now this is running via:

export GMAPS_API_KEY=.... # The private API key
cd rest_api
docker build # outputs an image id like 3cf46957c692

# Run the docker container. Then there is a general proxy on the host that sends to this
while true ; do docker run -p 9999:5000 -v $(pwd):/app -e GMAPS_API_KEY=$GMAPS_API_KEY 3cf46957c692 python run.py ; done

Then I have a general nginx proxy for thelackthereof.org that has this entry

    # maps api
    location /api {
      proxy_pass http://pegasus.thelackthereof.org:9999;
      proxy_set_header X-Forwarded-For $remote_addr;
    }

And the app is hard-wired to use thelackthereof.org/api as its base.

┆Issue is synchronized with this Trello card by Unito

@awwaiid awwaiid added the infrastructure Getting stuff into and keeping it in production. DevOps. label Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Getting stuff into and keeping it in production. DevOps.
Projects
None yet
Development

No branches or pull requests

1 participant