29 lines
605 B
Plaintext
29 lines
605 B
Plaintext
# docker/nginx/default.conf
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /var/www/html/public;
|
|
index index.php;
|
|
|
|
client_max_body_size 50m;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri =404;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
fastcgi_pass app:9000;
|
|
fastcgi_read_timeout 300;
|
|
}
|
|
|
|
location ~* \.(?:css|js|map|png|jpg|jpeg|gif|svg|ico|woff2?)$ {
|
|
expires 30d;
|
|
access_log off;
|
|
try_files $uri =404;
|
|
}
|
|
}
|