Browse Source

Updating envoy to handle API request, proxy to app-service, doesn't have to come from /app/api.

gh-pages
mike12345567 6 years ago
parent
commit
aae6ed7157
  1. 4
      hosting/envoy.yaml
  2. 18
      hosting/scripts/linux/install-docker.sh

4
hosting/envoy.yaml

@ -20,6 +20,10 @@ static_resources:
route:
cluster: app-service
prefix_rewrite: "/"
# special case for when API requests are made, can just forward, not to minio
- match: { prefix: "/api/" }
cluster: app-service
- match: { prefix: "/worker/" }
route:

18
hosting/scripts/linux/install-docker.sh

@ -1,14 +1,6 @@
#!/bin/bash
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
echo "**** WARNING - not for production environments ****"
# warning this is a convience script, for production installations install docker
# properly for your environment!
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

Loading…
Cancel
Save