diff --git a/hidche/web/Dockerfile b/hidche/web/Dockerfile index 03b2daa..fe95560 100644 --- a/hidche/web/Dockerfile +++ b/hidche/web/Dockerfile @@ -14,6 +14,7 @@ RUN if [ "$UID" != 33 ]; then \ fi; COPY ./default.conf /etc/nginx/conf.d/default.conf +COPY ./sam.conf /etc/nginx/snippets/sam.conf COPY ./rhymix.conf /etc/nginx/snippets/rhymix.conf VOLUME /var/www/html diff --git a/hidche/web/default.conf b/hidche/web/default.conf index 6fdd3f0..6c2872d 100644 --- a/hidche/web/default.conf +++ b/hidche/web/default.conf @@ -30,6 +30,7 @@ server { } location / { + include snippets/sam.conf; location ~ \.php$ { include fastcgi_params; proxy_read_timeout 600; diff --git a/hidche/web/sam.conf b/hidche/web/sam.conf new file mode 100644 index 0000000..252ebe3 --- /dev/null +++ b/hidche/web/sam.conf @@ -0,0 +1,68 @@ +location ~ /\. { + return 404; +} + +location ~ /composer { + return 404; +} + +location ~ /package\.(json|lock) { + return 404; +} + + +location ~ /d_setting/ { + return 404; +} + +location ~ /d_log/ { + return 404; +} + +location ~ /logs/ { + return 404; +} + +location ~ /node_modules { + return 404; +} + +location ~ /vendor { + return 404; +} + +location ~ /tests { + return 404; +} + +location ~ /test-ts { + return 404; +} + +location ~ /npm_recent { + return 404; +} + +location ~ /composer_result { + return 404; +} + +location ~ /tsconfig.json { + return 404; +} + +location ~ /webpack.config.js { + return 404; +} + +location ~ /src { + return 404; +} + +location ~ /[^/]+/sammo/ { + return 404; +} + +location ~ /[^/]+/data/ { + return 404; +} \ No newline at end of file