Verified Commit af14c99a authored by Ziirish's avatar Ziirish

fix: ProxyFix only WSGI app (see #311)

parent bd74bf24
Pipeline #1643 passed with stages
in 3 minutes and 32 seconds
......@@ -156,7 +156,7 @@ def create_app(conf=None, verbose=0, logfile=None, **kwargs):
kwargs = app.config['PROXY_FIX_ARGS'].format(num_proxies=app.config['NUM_PROXIES'])
kwargs = json.loads(kwargs)
logger.debug(f"Using {kwargs} as ProxyFix parameters")
app = ProxyFix(app, **kwargs)
app.wsgi_app = ProxyFix(app.wsgi_app, **kwargs)
if app.storage and app.storage.lower() == 'redis':
try:
......
FROM python:3.6-alpine3.8
FROM python:3.7-alpine3.10
RUN apk add --no-cache supervisor logrotate librsync libressl tzdata nginx \
&& apk add --no-cache --virtual .fetch-deps \
......
FROM alpine:3.7
FROM alpine:3.10
RUN apk add --no-cache supervisor logrotate librsync libressl tzdata bash coreutils \
&& apk add --no-cache --virtual .fetch-deps \
......
FROM debian:stretch
FROM debian:buster
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y supervisor logrotate locales wget curl uthash-dev g++ make libssl-dev librsync-dev git cron autoconf automake libtool libz-dev libyajl-dev gnupg \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment