2021-06-06 15:38:46 +00:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
|
|
|
|
client_max_body_size 1024M;
|
|
|
|
|
|
|
|
root /app/public;
|
|
|
|
|
|
|
|
server_name _;
|
|
|
|
|
|
|
|
index index.html index.htm;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
# First attempt to serve request as file, then
|
|
|
|
# as directory, then fall back to displaying a 404.
|
2022-05-06 02:52:55 +00:00
|
|
|
#try_files $uri $uri/;
|
2021-06-06 15:38:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# deny access to .htaccess files, if Apache's document root
|
|
|
|
# concurs with nginx's one
|
|
|
|
#
|
|
|
|
location ~ /\.ht {
|
|
|
|
deny all;
|
|
|
|
}
|
|
|
|
}
|