BigchainDB Web Proxy to add headers to requests

Currently, the requests from public websites (like
`bigchaindb.com/getstarted` and tutorials.bigchaindb.com/crab) cannot have the
app_id and app_key required to access IPDB in the web page.

We pass such requests through a web proxy that adds the required headers
to any POST requests from `*.bigchaindb.com`.
This commit is contained in:
krish7919 (Krish)
2017-09-05 15:51:28 +02:00
committed by Krish
parent 5fbc3f4a6c
commit f07df50041
8 changed files with 426 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
FROM openresty/openresty:alpine
RUN apk update \
&& apk upgrade \
&& apk add bash
COPY nginx.conf.template /etc/nginx/nginx.conf
COPY nginx_entrypoint.bash /
EXPOSE 443
ENTRYPOINT ["/nginx_entrypoint.bash"]