findbug 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: febb3a02b6cd7b7791b2b64fbcfa2222a5adedcd591cc3096dc9e3f4128e430d
|
|
4
|
+
data.tar.gz: c6714e86d56418b5afe1bdcaf84f0a4e1f8e8676872c07a54ff49092539751b8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c239228a5a8a06668260ebea57ff173a53d255b23a7607816129399d1bca45fa98c4a915079f58ac44d766c55b160799505a03e63e917e993b7660b8edd21321
|
|
7
|
+
data.tar.gz: d181ff1a682f7e04ab4cf85261d81bf95b59ee53aa4cebd45328cc750ec896408378d0e26fcc15f4388301ba03670d5d328e3dc3665cbc3371f10ac3b4bd08c3
|
data/lib/findbug/version.rb
CHANGED
|
@@ -17,17 +17,19 @@ Next steps:
|
|
|
17
17
|
# Or set directly in config/initializers/findbug.rb:
|
|
18
18
|
config.redis_url = "redis://localhost:6379/1"
|
|
19
19
|
|
|
20
|
-
3.
|
|
20
|
+
3. Access the dashboard:
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
FINDBUG_USERNAME=admin
|
|
24
|
-
FINDBUG_PASSWORD=your-secure-password
|
|
22
|
+
http://localhost:3000/findbug
|
|
25
23
|
|
|
26
|
-
|
|
24
|
+
Default credentials (CHANGE IN PRODUCTION!):
|
|
25
|
+
Username: admin
|
|
26
|
+
Password: findbug
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
To customize, set environment variables:
|
|
29
|
+
FINDBUG_USERNAME=your-username
|
|
30
|
+
FINDBUG_PASSWORD=your-secure-password
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
4. (Optional) Configure alerts in config/initializers/findbug.rb:
|
|
31
33
|
|
|
32
34
|
config.alerts do |alerts|
|
|
33
35
|
alerts.slack(
|
|
@@ -36,7 +38,7 @@ Next steps:
|
|
|
36
38
|
)
|
|
37
39
|
end
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
5. (Multi-tenant apps) If using Apartment/ros-apartment, add to apartment.rb:
|
|
40
42
|
|
|
41
43
|
config.excluded_models = %w[Findbug::ErrorEvent Findbug::PerformanceEvent]
|
|
42
44
|
|
|
@@ -102,9 +102,9 @@ Findbug.configure do |config|
|
|
|
102
102
|
# ============================================================================
|
|
103
103
|
|
|
104
104
|
# Dashboard authentication (required for dashboard to be enabled)
|
|
105
|
-
#
|
|
106
|
-
config.web_username = ENV
|
|
107
|
-
config.web_password = ENV
|
|
105
|
+
# Default credentials are set for development - CHANGE THESE IN PRODUCTION!
|
|
106
|
+
config.web_username = ENV.fetch("FINDBUG_USERNAME", "admin")
|
|
107
|
+
config.web_password = ENV.fetch("FINDBUG_PASSWORD", "findbug")
|
|
108
108
|
|
|
109
109
|
# Dashboard URL path (default: "/findbug")
|
|
110
110
|
config.web_path = "/findbug"
|