aboutsummaryrefslogtreecommitdiffstats
path: root/docs/setup.sh
diff options
context:
space:
mode:
authorThomas Kriechbaumer <Kriechi@users.noreply.github.com>2020-04-12 22:06:22 +0200
committerGitHub <noreply@github.com>2020-04-12 22:06:22 +0200
commit30645fa1ac6fa828bda390383abee7c04f20206f (patch)
tree10b599dab550e06c6d2d9ffb37dd1a3cf783922a /docs/setup.sh
parentce50e8e52dc5316f9be29bc00d0dc72fc2b0af83 (diff)
parent55527c00eb35bf3b07b361363fd8ca2961afc8ba (diff)
downloadmitmproxy-30645fa1ac6fa828bda390383abee7c04f20206f.tar.gz
mitmproxy-30645fa1ac6fa828bda390383abee7c04f20206f.tar.bz2
mitmproxy-30645fa1ac6fa828bda390383abee7c04f20206f.zip
Merge pull request #3921 from Kriechi/example-docs
Example docs
Diffstat (limited to 'docs/setup.sh')
-rwxr-xr-xdocs/setup.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/setup.sh b/docs/setup.sh
new file mode 100755
index 00000000..da30a3c9
--- /dev/null
+++ b/docs/setup.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+set -o errexit
+set -o pipefail
+set -o nounset
+# set -o xtrace
+
+# This is only needed once to provision a new fresh empty S3 bucket.
+
+aws configure set preview.cloudfront true
+aws --profile mitmproxy \
+ s3 cp --acl public-read ./bucketassets/error.html s3://docs.mitmproxy.org/error.html
+aws --profile mitmproxy \
+ s3 cp --acl public-read ./bucketassets/robots.txt s3://docs.mitmproxy.org/robots.txt