From 1f29431ad414ef29a78d056249074d2b1f40826c Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Tue, 14 Jul 2020 22:52:10 -0400 Subject: Add .gitignore, make port 80 default --- .gitignore | 1 + main.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore 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"` } -- cgit v1.2.3