STF-nginx配置

server {
    listen       80;
    server_name  10.66.80.158;
    location /static/app/ {
        root   /opt/nodejs/lib/node_modules/stf/res/app/;
        proxy_pass      http://127.0.0.1:7100;
        access_log      on;
        expires 30d;
    }
    location /static/app/data/ {
        root   /opt/nodejs/lib/node_modules/stf/res/data/;
        proxy_pass      http://127.0.0.1:7100;
        access_log      on;
        expires 30d;
    }
    location /static/app/status/ {
        root   /opt/nodejs/lib/node_modules/stf/res/common/status/;
        proxy_pass      http://127.0.0.1:7100;
        access_log      on;
        expires 30d;
    }

    location /static/app/build/entry/ {
        root   /opt/nodejs/lib/node_modules/stf/res/build/entry/;
        proxy_pass      http://127.0.0.1:7100;
        access_log      on;
        expires 30d;
    }
    location /static/app/build/ {
        root   /opt/nodejs/lib/node_modules/stf/res/build/;
        proxy_pass      http://127.0.0.1:7100;
        access_log      on;
        expires 30d;
    }
    location /static/app/browsers/ {
        root   /opt/nodejs/lib/node_modules/stf/node_modules/stf-browser-db/dist/;
        proxy_pass      http://127.0.0.1:7100;
        access_log      on;
        expires 30d;
    }

    location /static/app/appstores/ {
        root   /opt/nodejs/lib/node_modules/stf/node_modules/stf-appstore-db/dist/;
        proxy_pass      http://127.0.0.1:7100;
        access_log      on;
        expires 30d;
    }

    location /static/app/devices/ {
        root   /opt/nodejs/lib/node_modules/stf/node_modules/stf-device-db/dist/;
        proxy_pass      http://127.0.0.1:7100;
        access_log      on;
        expires 30d;
    }
    location /static/app/custom/ {
        root   /opt/nodejs/lib/node_modules/stf/static/;
        proxy_pass      http://127.0.0.1:7100;
        access_log      on;
        expires 30d;
    }

    location /static/logo/ {
        root   /opt/nodejs/lib/node_modules/stf/res/common/logo/;
        proxy_pass      http://127.0.0.1:7100;
        access_log      on;
        expires 30d;
    }

    location /res/common/logo/exports/favicon.ico {
        root   /opt/nodejs/lib/node_modules/stf/res/common/logo/exports/favicon.ico;
        proxy_pass      http://127.0.0.1:7100;
        access_log      on;
        expires 30d;
    }
    location /robots.txt {
        root           /var/www/link_check/link_check/static/;
        access_log      on;
        log_not_found   off;
    }
    location /favicon.ico {
        root            /var/www/link_check/link_check/static/;
        access_log      off;
        log_not_found   off;
    }
    location / {
        proxy_pass          http://127.0.0.1:7100/;
        proxy_redirect      off;
        proxy_set_header    x-Real-IP        $remote_addr;
        proxy_set_header    x-Forwarded-For  $proxy_add_x_forwarded_for;
    }
}

你可能感兴趣的:(STF-nginx配置)