From 4b278ecc1a0e26da13a2802affb7773711a5481e Mon Sep 17 00:00:00 2001 From: mahboobeh Date: Tue, 2 Jun 2020 12:56:42 +0800 Subject: [PATCH 1/2] Create default.conf --- .../usr/share/nginx/default.conf" | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 "server { listen 80; server_name localhost; add_header Cache-Control \"public, max-age=7200, s-maxage=600, must-revalidate\"; charset UTF-8; error_page 404/404.html; location @custom_error_503 { return 503; } location ~/\\.git { return 404; } location/{ root/usr/share/nginx/default.conf" diff --git "a/server { listen 80; server_name localhost; add_header Cache-Control \"public, max-age=7200, s-maxage=600, must-revalidate\"; charset UTF-8; error_page 404/404.html; location @custom_error_503 { return 503; } location ~/\\.git { return 404; } location/{ root/usr/share/nginx/default.conf" "b/server { listen 80; server_name localhost; add_header Cache-Control \"public, max-age=7200, s-maxage=600, must-revalidate\"; charset UTF-8; error_page 404/404.html; location @custom_error_503 { return 503; } location ~/\\.git { return 404; } location/{ root/usr/share/nginx/default.conf" new file mode 100644 index 0000000000..758978854f --- /dev/null +++ "b/server { listen 80; server_name localhost; add_header Cache-Control \"public, max-age=7200, s-maxage=600, must-revalidate\"; charset UTF-8; error_page 404/404.html; location @custom_error_503 { return 503; } location ~/\\.git { return 404; } location/{ root/usr/share/nginx/default.conf" @@ -0,0 +1,22 @@ +server { + listen 80; + server_name localhost; + + add_header Cache-Control "public, max-age=7200, s-maxage=600, must-revalidate"; + charset UTF-8; + + error_page 404 /404.html; + + location @custom_error_503 { + return 503; + } + + location ~ /\.git { + return 404; + } + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + } +} From cdb486e9317c9954640fa41e180ee5ff09b600b1 Mon Sep 17 00:00:00 2001 From: mahboobeh Date: Tue, 2 Jun 2020 12:59:51 +0800 Subject: [PATCH 2/2] Create .dockerignore --- .dockerignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000..331d38729f --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git +Dockerfile