2021-02-01 17:25:08 +01:00
|
|
|
#!/bin/sh
|
2021-02-02 17:54:01 +01:00
|
|
|
__MEMPOOL_BACKEND_MAINNET_HTTP_HOST__=${BACKEND_MAINNET_HTTP_HOST:=127.0.0.1}
|
2021-02-03 02:12:15 +01:00
|
|
|
__MEMPOOL_BACKEND_MAINNET_HTTP_PORT__=${BACKEND_MAINNET_HTTP_PORT:=8999}
|
2021-02-10 14:51:01 +01:00
|
|
|
__MEMPOOL_FRONTEND_HTTP_PORT__=${FRONTEND_HTTP_PORT:=8080}
|
2021-02-01 17:25:08 +01:00
|
|
|
|
2021-02-02 16:34:21 +01:00
|
|
|
sed -i "s/__MEMPOOL_BACKEND_MAINNET_HTTP_HOST__/${__MEMPOOL_BACKEND_MAINNET_HTTP_HOST__}/g" /etc/nginx/conf.d/nginx-mempool.conf
|
2021-02-03 02:12:15 +01:00
|
|
|
sed -i "s/__MEMPOOL_BACKEND_MAINNET_HTTP_PORT__/${__MEMPOOL_BACKEND_MAINNET_HTTP_PORT__}/g" /etc/nginx/conf.d/nginx-mempool.conf
|
2021-02-01 17:25:08 +01:00
|
|
|
|
2021-02-10 14:51:01 +01:00
|
|
|
cp /etc/nginx/nginx.conf /patch/nginx.conf
|
|
|
|
sed -i "s/__MEMPOOL_FRONTEND_HTTP_PORT__/${__MEMPOOL_FRONTEND_HTTP_PORT__}/g" /patch/nginx.conf
|
|
|
|
cat /patch/nginx.conf > /etc/nginx/nginx.conf
|
|
|
|
|
2021-02-01 17:25:08 +01:00
|
|
|
exec "$@"
|