SkyWalking UI 修改发布Nginx

文章目录

SkyWalking UI

skywalking-booster-ui下载地址

修改图标

替换 logo.svg

修改路由

router - data - index.ts

发布到Nginx

添加认证

复制代码
# 安装
yum install -y httpd-tools
# 生产密钥文件
htpasswd -cb /home/htpasswd/sw skywalking(生成的账号) skywalking(生成的密码)

修改路由模式

js 复制代码
  // history: createWebHistory(import.meta.env.BASE_URL),
  history: createWebHashHistory(import.meta.env.BASE_URL),

vite.config.ts添加base

Nginx配置

config 复制代码
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;
}
相关推荐
IT菜鸟程19 小时前
Ubuntu 下 apt 版 Nginx 升级为源码编译版本完整操作指南(1.24.0 → 1.30.4 实战)
linux·nginx·ubuntu
sbjdhjd21 小时前
从 7 字符文件名拼接到二维数组取值:PHP 无参函数限制下的受控靶场复盘 | (7字符绕过)
网络·nginx·安全·网络安全·云计算·php·apache
NGINX开源社区1 天前
NGINX Gateway Fabric 2.6:F5 WAF for NGINX 集成 Gateway API
nginx·gateway·fabric
小白羊丨2 天前
HTTP/2 如何缓解 HTTP/1.1 阻塞;长连接对 Nginx 有什么影响?
网络协议·nginx·http
xixiaoyunya2 天前
Docker 容器化部署实战:从零搭建一套完整的 Nginx + Node.js + MySQL + Redis 项目环境
nginx·docker·node.js
SendTomo2 天前
【技术交流】从0到1构建一个汉字学习平台:汉字吧(hanzi8.com)的技术架构猜想
redis·mysql·nginx·php·个人开发
滨哥GPT3 天前
Codex新增文件上传后为什么小文件正常,大文件总失败?Multipart、Body Limit与Nginx限制排查
nginx·ai编程·文件上传·codex·multipart
码匠许师傅3 天前
【设计模式精讲】25.状态模式(State)
c++·ui·设计模式·状态模式·uml
come112343 天前
Nginx `location` 配置说明(后端开发版)
运维·nginx
插件开发4 天前
Illustrator 插件开发:链接文件存在检查的原理与实战
ui·illustrator