Skip to content

Commit 92d3f1b

Browse files
authored
Update default.conf
Security measures
1 parent 86918e5 commit 92d3f1b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

nginx/conf.d/default.conf

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
server {
2-
listen 80;
3-
server_name "";
2+
listen 10401;
3+
server_name image-dl.tavuru.net;
44

55
access_log /home/container/logs/naccess.log;
66
error_log /home/container/logs/nerror.log error;
77

88
root /home/container/www;
99
index index.html index.htm index.php;
1010
charset utf-8;
11-
11+
1212
location / {
1313
try_files $uri $uri/ /index.php?$query_string;
1414
}
@@ -19,6 +19,9 @@ server {
1919
client_max_body_size 100m;
2020
client_body_timeout 120s;
2121
sendfile off;
22+
23+
24+
2225
location ~ \.php$ {
2326
fastcgi_split_path_info ^(.+\.php)(/.+)$;
2427
fastcgi_pass unix:/home/container/tmp/php-fpm.sock;
@@ -35,6 +38,10 @@ server {
3538
fastcgi_read_timeout 300;
3639
}
3740

41+
location ~ /(vendor|composer\.lock|composer\.json) {
42+
deny all;
43+
}
44+
3845
location ~ /\.git {
3946
deny all;
4047
}

0 commit comments

Comments
 (0)