替换 logo.svg
router - data - index.ts
# 安装
yum install -y httpd-tools
# 生产密钥文件
htpasswd -cb /home/htpasswd/sw skywalking(生成的账号) skywalking(生成的密码)
// history: createWebHistory(import.meta.env.BASE_URL),
history: createWebHashHistory(import.meta.env.BASE_URL),
location / {
root /home/sk-dist/dist;
autoindex on;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
index index.html index.htm;
try_files $uri $uri/ /index.html;
auth_basic "Please input password"; #这个是提示信息
auth_basic_user_file /home/htpasswd/sw; #存放密码文件的路径
}
location /graphql {
proxy_method POST;
proxy_pass http://127.0.0.1:12800/graphql;
}