diff --git a/Dockerfile b/Dockerfile index f763fcf..fd8fc98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,3 +3,4 @@ FROM nginx:latest COPY privkey.pem /etc/nginx/ COPY fullchain.pem /etc/nginx/ COPY default.conf /etc/nginx/conf.d/ +COPY index.html /usr/share/nginx/html/404/ diff --git a/default.conf b/default.conf index ca19337..e52c1d5 100644 --- a/default.conf +++ b/default.conf @@ -5,6 +5,10 @@ server { server_name _; # managed by Certbot client_max_body_size 70M; + location /404 { + try_files $uri $uri/ /index.html; + } + location /auth { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; @@ -180,7 +184,7 @@ server { add_header Access-Control-Allow-Credentials true always; add_header Access-Control-Allow-Headers content-type always; proxy_set_header Host $host; - proxy_pass http://10.6.0.17:8006/; + proxy_pass http://10.8.0.6:8006/; } location /verification1 { if ($request_method = OPTIONS) { diff --git a/index.html b/index.html new file mode 100644 index 0000000..25c7c8b --- /dev/null +++ b/index.html @@ -0,0 +1,188 @@ + + + + + + + 404 + + + + + + + + + + + + + + + + + + +
+
+

4

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

4

+
+
+
+

+ Страница не найдена +

+

+ Посетите главную страницу, возможно вы найдете ее +

+
+ На главную +
+
+ + +