「SonarQube」- 代码质量检查

更新日期:2019年12月23日
@CICD

重置密码

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;
  }
}

参考文献

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


ToC

重置密码

配置 Nginx 前端

参考文献