summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Volkov <av903u@att.com>2018-10-19 18:44:20 +0000
committerAndrey Volkov <av903u@att.com>2018-10-23 14:51:05 -0700
commit5f2940f5752e7126f82355382a57a806dded5eb3 (patch)
treeb373b7a562d475204fdc439e679f3586763a06f5
parent141e3b0b26d8d876d305883b62f00e5519385061 (diff)
Nginx blacklist
-rw-r--r--Dockerfile2
-rwxr-xr-xassets/nginx.conf.sh2
-rw-r--r--assets/nginx/blacklist.conf3
3 files changed, 7 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index c3b9ff4..7fc4875 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -61,4 +61,6 @@ RUN /opt/startup.sh
61 61
62# Execute Startup script when container starts 62# Execute Startup script when container starts
63 63
64VOLUME [ "/opt/nginx" ]
65
64CMD [ "/opt/run.sh" ] 66CMD [ "/opt/run.sh" ]
diff --git a/assets/nginx.conf.sh b/assets/nginx.conf.sh
index cd1b403..139ca8d 100755
--- a/assets/nginx.conf.sh
+++ b/assets/nginx.conf.sh
@@ -13,5 +13,7 @@ server {
13 location / { 13 location / {
14 autoindex on; 14 autoindex on;
15 } 15 }
16
17 include /opt/nginx/*.conf;
16} 18}
17EOF 19EOF
diff --git a/assets/nginx/blacklist.conf b/assets/nginx/blacklist.conf
new file mode 100644
index 0000000..cc74f61
--- /dev/null
+++ b/assets/nginx/blacklist.conf
@@ -0,0 +1,3 @@
1location ~ (telnet|ftp) {
2 return 404;
3}