選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
yk 04c20130f7 更新 'README.md' 2年前
public init 2年前
src init 2年前
. eslintignore init 2年前
.browserslistrc init 2年前
.dockerignore init 2年前
.env.dev init 2年前
.env.prod init 2年前
.env.test init 2年前
.eslintrc.js init 2年前
.gitignore init 2年前
.npmrc init 2年前
.prettierrc init 2年前
.stylelintrc init 2年前
README.md 更新 'README.md' 2年前
babel.config.js init 2年前
nginx.conf init 2年前
package.json init 2年前
vue.config.js init 2年前

README.md

具体操作命令见package.json

编译了后放在nginx上,配置如下

server {
        listen       48082;
        server_name  localhost;
        root         /usr/share/nginx/dist2;
        gzip on;
        gzip_types text/plain application/x-javascript application/javascript text/css application/xml text/javascript  image/jpeg image/gif image/png;
        add_header Access-Control-Allow-Origin *;
        add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
        add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'; 
        add_header Cache-Control no-cache;
        add_header Cache-Control no-store;
        location / {
            if ($request_filename ~* .*\.(?:htm|html)$)
                  {
                    add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
                  }
                 if ($request_filename ~* .*\.(?:js|css)$)
                 {
                   add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate";
                 }
                if ($request_filename ~* .*\.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$)
                {
                  expires      1d;
                }
        }

        location /srv/ {
          # 后端的真实接口
            proxy_pass https://ai.lecooai.com/;
            proxy_redirect off;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }

        location /hj/ {
          # 后端的真实接口
            proxy_pass http://dev.lecooai.com:/;
                proxy_redirect off;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        }

        location /getKey {
          # 后端的真实接口
            proxy_pass http://tx.lecooai.com:47880/api/server/getkey_pc;
            proxy_redirect off;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }

}

frpc.ini配置如下

[common]
server_addr = 39.105.85.176
server_port = 47000
# auth token
token = Lecooai2021


[web9091]
type = http
local_ip = 127.0.0.1
local_port = 8088
# server - http 端口
remote_port = 63091
# 在本地hosts文件里面  配置  39.105.85.176 绑定到 w80.wangqy.frp (自定义域名)
# http://w80.wangqy.frp:60080/  =>  http://localhost:80
custom_domains = dev.lecooai.com

[web8089]
type = http
local_ip = 127.0.0.1
local_port = 8089
# server - http 端口
remote_port = 63089
# 在本地hosts文件里面  配置  39.105.85.176 绑定到 w80.wangqy.frp (自定义域名)
# http://w80.wangqy.frp:60080/  =>  http://localhost:80
custom_domains = tx.lecooai.com

frps.ini配置如下:

[common]
bind_port = 47000
bind_udp_port = 47001
# 指定 仪表盘控制界面 Dashboard 的监听的 IP 地址 //0.0.0.0 为所以IP均可访问
dashboard_addr = 0.0.0.0

# 指定 仪表盘控制界面 Dashboard 的监听的端口,默认为 7500
dashboard_port = 47500

vhost_http_port = 47880
vhost_https_port = 47883

# 指定访问 仪表盘控制界面 Dashboard 的登录用户名
dashboard_user = admin

# 指定访问 仪表盘控制界面 Dashboard 的登录用户密码
dashboard_pwd = Lecooai2021

# auth token
token = Lecooai2021

# specify udp packet size, unit is byte. If not set, the default value is 1500.
# This parameter should be same between client and server.
# It affects the udp and sudp proxy.
udp_packet_size = 1500