aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2020-07-14 22:52:10 -0400
committerBen Burwell <ben@benburwell.com>2020-07-14 22:52:10 -0400
commit1f29431ad414ef29a78d056249074d2b1f40826c (patch)
treeb8f9a0e110ad3a1f954d68011df5aa11d5048242
parente8b79478b1807b8f8828c51e989d83c5ae7d6d89 (diff)
Add .gitignore, make port 80 default
-rw-r--r--.gitignore1
-rw-r--r--main.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..be60291
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+csp_exporter
diff --git a/main.go b/main.go
index 434b936..0190ad1 100644
--- a/main.go
+++ b/main.go
@@ -16,7 +16,7 @@ import (
)
type config struct {
- CollectorBindAddr string `envconfig:"COLLECTOR_BIND_ADDR" required:"true"`
+ CollectorBindAddr string `envconfig:"COLLECTOR_BIND_ADDR" default:":80"`
PromBindAddr string `envconfig:"PROM_BIND_ADDR" default:":9477"`
}