赞

回答

收藏

[部署教程] NETSS系统管理后台代码部署教程

问题解决 问题解决 137 人阅读 | 0 人回复 | 2025-06-08

管理后台很简单,仅需要一个html的静态环境即可。

在配置文件中添加以下代码:

location /api {
      proxy_pass https://xxx.com/;  // 自己api接口地址,对应platform模块。V1版本需要去掉后面的v1,这段文字说明也要去掉,不然会报错!!!
    }

    location / {
      try_files $uri $uri/ @router;
      index index.html;
    }

    location @router {
      rewrite ^.*$ /index.html last;
    }


如图:

2024013012193120.jpg


分享到:
高级模式
B Color Image Link Quote Code Smilies

本版积分规则

39 积分
7 主题