「SonarQube」- 代码质量检查 @20210411

重置密码

How to recover admin password for SONAR
Reinstating Admin Access

默认的 用户名/密码 是 admin/admin 。如果忘记密码可以进行重置:

-- SonarQube 7.7
update users set crypted_password = '$2a$12$uCkkXmhW5ThVK8mpBvnXOOJRLd64LJeHTeCkSuB3lfaR2N0AYBaSi',
    salt=null, hash_method='BCRYPT' where login = 'admin'

配置 Nginx 前端

Securing the Server Behind a Proxy

# the server directive is nginx's virtual host directive
server {
  # port to listen on. Can also be set to an IP:PORT
  listen 80;

  # sets the domain[s] that this vhost server requests for
  server_name www.somecompany.com;

  location / {
    proxy_pass http://sonarhost:sonarport;
  }
}

相关文章

「rsync」- remote sync
「Git」- 分布式版本控制系统
「Jenkins Pipeline」- 在 Jenkinsfile 中使用共享库
「Jenkins Pipeline」- 发送构建结果通知
第12章 低风险发布
「Jenkins Pipeline」- 使用 Jenkinsfile 文件(学习笔记)
「Git」- 仓库代码统计

参考文献

SonarQube: Continuous Inspection
Wikipedia/SonarQube
GitHub/SonarSource/sonarqube


posted @ 2021-04-11 21:05  研究林纳斯写的  阅读(59)  评论(0编辑  收藏  举报