diff --git a/Dockerfile b/Dockerfile index c82e82e..8c1226a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM alpine AS builder ARG DEP_DEV="alpine-sdk zlib-dev pcre-dev openssl-dev gd-dev" ARG NGINX_MODULES="--with-http_realip_module --with-threads --with-http_ssl_module --with-http_v2_module --with-http_image_filter_module --with-http_gzip_static_module --with-http_secure_link_module" -ARG NGINX=1.16.1 +ARG NGINX=1.17.9 RUN apk add --no-cache ${DEP_DEV} @@ -29,7 +29,6 @@ RUN apk add --no-cache ${DEP_RUN} \ COPY ./conf/nginx.conf /usr/local/nginx/conf/nginx.conf COPY ./conf/default.conf /usr/local/nginx/conf/sites/default.conf -COPY ./html/error.html /usr/local/nginx/html/error.html EXPOSE 80 diff --git a/conf/default.conf b/conf/default.conf index c8b9952..ba69f40 100644 --- a/conf/default.conf +++ b/conf/default.conf @@ -2,16 +2,10 @@ server { listen 80; server_name _; - location / { - root /srv; - try_files $uri /index.html =404; - } - - error_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 420 422 423 424 426 428 429 431 444 449 450 451 /error.html; - error_page 500 501 502 503 504 505 506 507 508 509 510 511 /error.html; - location = /error.html { - internal; - root /usr/local/nginx/html; - } + location / { + root /srv; + index index.html; + try_files $uri $uri/ /index.html?$args; + } } \ No newline at end of file