summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-06-15 10:37:53 +0300
committerPaul Buetow <paul@buetow.org>2024-06-15 10:37:53 +0300
commit0a4fd9b0b8bcd91e008e905e21de9d87953e3022 (patch)
tree56d1e281a13760607de2b02eca3720d553274743
parentdad73343d8d0d2fe0f69d3749ba2ac853e6e464c (diff)
add example config file for gosd
-rw-r--r--.gitignore6
-rw-r--r--cmd/gosd/main.go2
-rw-r--r--examples/gos.json1
-rw-r--r--examples/gosd.json9
4 files changed, 14 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 099ed4c..bceb4a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,3 @@
-data
-gosd
-gos
+./data
+./gosd
+./gos
diff --git a/cmd/gosd/main.go b/cmd/gosd/main.go
index b35f806..e6080e0 100644
--- a/cmd/gosd/main.go
+++ b/cmd/gosd/main.go
@@ -12,7 +12,7 @@ import (
)
func main() {
- configFile := flag.String("cfg", "/etc/gos.json", "The configuration file")
+ configFile := flag.String("cfg", "/etc/gosd.json", "The configuration file")
conf, err := config.New(*configFile)
if err != nil {
diff --git a/examples/gos.json b/examples/gos.json
new file mode 100644
index 0000000..ffcd441
--- /dev/null
+++ b/examples/gos.json
@@ -0,0 +1 @@
+{ }
diff --git a/examples/gosd.json b/examples/gosd.json
new file mode 100644
index 0000000..7e9c422
--- /dev/null
+++ b/examples/gosd.json
@@ -0,0 +1,9 @@
+{
+ "ListenAddr": "127.0.0.1:8080",
+ "Partner": "partner1,partner2",
+ "ApiKey": "",
+ "DataDir": "./data",
+ "EmailTo": "recipient@example.com",
+ "EmailFrom": "sender@example.com",
+ "SMTPServer": "smtp.example.com:587"
+}