Merge remote-tracking branch 'origin/main' into heroku-app
This commit is contained in:
commit
3d2e3283a9
|
@ -16,7 +16,7 @@ FROM python:3.8-slim
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
tor \
|
tor \
|
||||||
wget \
|
curl \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ARG config_dir=/config
|
ARG config_dir=/config
|
||||||
|
@ -70,6 +70,6 @@ COPY whoogle.env .
|
||||||
EXPOSE $EXPOSE_PORT
|
EXPOSE $EXPOSE_PORT
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=5s \
|
HEALTHCHECK --interval=30s --timeout=5s \
|
||||||
CMD wget -qO- --no-verbose --tries=1 http://localhost:${EXPOSE_PORT}/ || exit 1
|
CMD curl -f http://localhost:${EXPOSE_PORT}/healthz || exit 1
|
||||||
|
|
||||||
CMD misc/tor/start-tor.sh & ./run
|
CMD misc/tor/start-tor.sh & ./run
|
||||||
|
|
|
@ -110,6 +110,11 @@ def unknown_page(e):
|
||||||
return redirect(g.app_location)
|
return redirect(g.app_location)
|
||||||
|
|
||||||
|
|
||||||
|
@app.route('/healthz', methods=['GET'])
|
||||||
|
def healthz():
|
||||||
|
return ''
|
||||||
|
|
||||||
|
|
||||||
@app.route('/', methods=['GET'])
|
@app.route('/', methods=['GET'])
|
||||||
@auth_required
|
@auth_required
|
||||||
def index():
|
def index():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user