fix nginx for dujiaoka v2.0.3

This commit is contained in:
Stille 2022-08-11 11:06:38 +08:00
parent 20c74dfbea
commit 4e6604f05c
2 changed files with 9 additions and 6 deletions

View File

@ -1,17 +1,17 @@
FROM ioiox/php-nginx:7.4-alpine
LABEL maintainer="sudo@dov.moe"
LABEL maintainer="stille@ioiox.com"
ENV INSTALL true
ENV MODIFY false
ENV VERSION 2.0.4
ENV VERSION 2.0.3
WORKDIR /
# RUN wget https://github.com/assimon/dujiaoka/releases/download/${VERSION}/${VERSION}-Antibody.tar.gz \
# && tar zxvf ${VERSION}-Antibody.tar.gz \
# && rm -rf ${VERSION}-Antibody.tar.gz && mv dujiaoka_build dujiaoka
RUN wget https://github.com/assimon/dujiaoka/releases/download/${VERSION}/${VERSION}-Antibody.tar.gz \
&& tar zxvf ${VERSION}-Antibody.tar.gz \
&& rm -rf ${VERSION}-Antibody.tar.gz && mv dujiaoka_build dujiaoka
RUN git clone https://github.com/assimon/dujiaoka
# RUN git clone https://github.com/assimon/dujiaoka
COPY ./conf/default.conf /opt/docker/etc/nginx/vhost.conf
COPY ./conf/dujiao.conf /opt/docker/etc/supervisor.d/

View File

@ -11,6 +11,9 @@ server {
charset utf-8;
client_max_body_size 50M;
client_body_buffer_size 30M;
location / {
try_files $uri $uri/ /index.php$is_args$query_string;
}