server dockermagento2compose_php_1:
9000;
}
set $MAGE_ROOT /var/www/html
;
fastcgi_param PHP_FLAG
"session.auto_start=off \n suhosin.session.cryptua=off";
fastcgi_param PHP_VALUE
"memory_limit=756M \n max_execution_time=600";
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
}
}
}
}
# PHP entry point for update application
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
}
# Deny everything but index.php
}
}
}
}
location ~ ^/pub/media/
(downloadable|customer|import|theme_customization/.*\.xml
) {
}
}
# Uncomment the following line in production mode
# expires max;
# Remove signature of the static files that is used to overcome the browser cache
rewrite ^/static/
(version\d*/
)?
(.*
)$ /static/$2 last
;
}
location ~* \.
(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2
)$
{
if (!-f
$request_filename) {
rewrite ^/static/?
(.*
)$ /static.php?resource
=$1 last
;
}
}
if (!-f
$request_filename) {
rewrite ^/static/?
(.*
)$ /static.php?resource
=$1 last
;
}
}
if (!-f
$request_filename) {
rewrite ^/static/?
(.*
)$ /static.php?resource
=$1 last
;
}
}
location ~ ^/media/theme_customization/.*\.xml
{
}
location ~* \.
(ico|jpg|jpeg|png|gif|svg|js|css|swf|eot|ttf|otf|woff|woff2
)$
{
}
}
}
}
}
}
# PHP entry point for main application
location ~ (index|get|static|report|
404|
503|health_check
)\.php$
{
fastcgi_param PHP_FLAG
"session.auto_start=off \n suhosin.session.cryptua=off";
fastcgi_param PHP_VALUE
"memory_limit=756M \n max_execution_time=18000";
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
}
text/plain
text/css
text/js
text/xml
text/javascript
application/javascript
application/x-javascript
application/json
application/xml
application/xml+rss
image/svg+xml;
# Banned locations (only reached if the earlier PHP entry point regexes don't match)
location ~*
(\.php$|\.htaccess$|\.git
) {
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}