Commit d357f347 authored by 智勇's avatar 智勇

up

parent 90256e8f
......@@ -20,4 +20,13 @@ server {
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
......@@ -30,5 +30,7 @@ http {
gzip on;
resolver 8.8.8.8;
include /usr/local/openresty/nginx/conf/conf.d/*.conf;
}
\ 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