Commit da46be95 authored by 智勇's avatar 智勇

up

parent 91f66f0f
server {
listen 80;
server_name _;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 4;
gzip_types text/plain application/x-javascript text/css application/xml application/javascript;
gzip_vary on;
location / {
expires -1;
if ($request_filename ~ \.(css|js|png|gif|jpg|jpeg|bmp|ico)$) {
expires 30d;
}
set_by_lua $rootPath '
local pre = "/home/quant_group/";
local sys = os.getenv("SYSTEM_NAME");
return pre..sys.."/dist/public"
';
root $rootPath;
try_files $uri $uri/ /index.html?$query_string;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment