@
INTOX8O 	location /pdf-tool {
        proxy_pass https://192.168.6.225:8351/pdf-tool;
        # 重写静态资源请求的 URL
        rewrite ^/pdf-tool/(css|js|images|svg)/(.*)$ /pdf-tool/$1/$2 break;
        # 替换 icon
        sub_filter 'href="/apple-touch-icon.png'  'href="/pdf-tool/apple-touch-icon.png';
        sub_filter 'href="/favicon-32x32.png' 'href="/pdf-tool/favicon-32x32.png';
        sub_filter 'href="/favicon-16x16.png' 'href="/pdf-tool/favicon-16x16.png';
        sub_filter 'href="/site.webmanifest'  'href="/pdf-tool/site.webmanifest';
        sub_filter 'href="/safari-pinned-tab.svg' 'href="/pdf-tool/safari-pinned-tab.svg';
        sub_filter 'href="/favicon.ico' 'href="/pdf-tool/favicon.ico';
        sub_filter 'href="pdfjs/locale/locale.properties' 'href="/pdf-tool/pdfjs/locale/locale.properties';
        # 修改 html 结构中的路径
        sub_filter 'action="/'  'action="/pdf-tool/';
        # 替换所有匹配到的
        sub_filter_once off;
        # 设置超时时间为 5 分钟
        proxy_read_timeout 300;
        proxy_connect_timeout 300;
        proxy_send_timeout 300;
        send_timeout 300;
		proxy_set_header   Host    $host;
		proxy_set_header   X-Real-IP   $remote_addr;
		proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
	}
这样配置的,需要做一些替换