summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--config/default.json8
-rw-r--r--config/example.json (renamed from config.json)0
3 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bf557f2..7ffa644 100644
--- a/Makefile
+++ b/Makefile
@@ -15,9 +15,9 @@ clean:
install: all
install -Dm 755 build/$(PROGRAM) $(DESTDIR)$(PREFIX)/bin/$(PROGRAM)
- install -Dm 644 config.json $(DESTDIR)/etc/$(PROGRAM)/config.json
+ install -Dm 644 config/default.json $(DESTDIR)/etc/$(PROGRAM)/config.json
install -Dm 644 appdata/index.html.tmpl $(DESTDIR)$(PREFIX)/share/$(PROGRAM)/index.html.tmpl
install -Dm 644 appdata/simple.css $(DESTDIR)$(PREFIX)/share/$(PROGRAM)/simple.css
debug:
- go run *.go -c config.json -a appdata
+ go run *.go -c config/example.json -a appdata
diff --git a/config/default.json b/config/default.json
new file mode 100644
index 0000000..17d64ef
--- /dev/null
+++ b/config/default.json
@@ -0,0 +1,8 @@
+{
+ "devices":{
+ "hs100":[]
+ },
+ "web":{
+ "listen":"127.0.0.1:9000"
+ }
+}
diff --git a/config.json b/config/example.json
index 9366364..9366364 100644
--- a/config.json
+++ b/config/example.json