Commit 91f66f0f authored by 智勇's avatar 智勇

contract-op-ui

parent 0ca20168
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"
';
root $rootPath;
try_files $uri $uri/ /index.html?$query_string;
}
location /pdf {
if ($host ~* contract-op-(\w+).([\w\.]+)){
set $domain $1;
set $tier $2;
}
rewrite ^/pdf/(.*)$ /$1 break;
proxy_pass https://pdf-$domain.$tier;
}
}
\ No newline at end of file
...@@ -23,13 +23,4 @@ server { ...@@ -23,13 +23,4 @@ server {
root $rootPath; root $rootPath;
try_files $uri $uri/ /index.html?$query_string; try_files $uri $uri/ /index.html?$query_string;
} }
location /pdf {
if ($host ~* contract-op-(\w+).([\w\.]+)){
set $domain $1;
set $tier $2;
}
rewrite ^/pdf/(.*)$ /$1 break;
proxy_pass https://pdf-$domain.$tier;
}
} }
\ 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