Browse Source

Nginx blacklist

Andrey Volkov 6 months ago
parent
commit
5f2940f575
3 changed files with 7 additions and 0 deletions
  1. 2
    0
      Dockerfile
  2. 2
    0
      assets/nginx.conf.sh
  3. 3
    0
      assets/nginx/blacklist.conf

+ 2
- 0
Dockerfile View File

@@ -61,4 +61,6 @@ RUN /opt/startup.sh
61 61
 
62 62
 # Execute Startup script when container starts
63 63
 
64
+VOLUME [ "/opt/nginx" ]
65
+
64 66
 CMD [ "/opt/run.sh" ]

+ 2
- 0
assets/nginx.conf.sh View File

@@ -13,5 +13,7 @@ server {
13 13
   location / {
14 14
     autoindex on;
15 15
   }
16
+
17
+  include /opt/nginx/*.conf;
16 18
 }
17 19
 EOF

+ 3
- 0
assets/nginx/blacklist.conf View File

@@ -0,0 +1,3 @@
1
+location ~ (telnet|ftp) {
2
+    return 404;
3
+}

Loading…
Cancel
Save