Skip to content

Commit

Permalink
update default config
Browse files Browse the repository at this point in the history
  • Loading branch information
pingtest committed Jan 29, 2020
1 parent 6a85671 commit 40455f3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ RUN apk add -U git
COPY --from=build /registry /registry
COPY --from=build /registry.conf /etc/registry.conf

VOLUME /go
VOLUME /var/log/registry
VOLUME /var/opt/registry

EXPOSE 8000

Expand Down
20 changes: 10 additions & 10 deletions etc/registry.sample.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[common]
admins = ["admin", "username"]
routeraddr = "router.test.com/measurement"
admins = ["admin"]
routeraddr = "127.0.0.1:8002/measurement"
persistreport = 6
pid = "/var/run/registry.pid"
productionusers = ["root", "www"]
Expand All @@ -13,7 +13,7 @@

[data]
# Where the metadata/raft database is stored
dir = "/tmp/registry"
dir = "/var/opt/registry"

# communicate with other nodes. Do not use "0.0.0.0"
clusterbind = "127.0.0.1:9000"
Expand All @@ -33,25 +33,25 @@
redirect = ""

[dns]
enable = true
enable = false
port = 53

[log]
# user op log storted in this ns via sdk
ns = "log.registry.loda"
ns = "oplog.monitor.loda"

logdir = "/run/log/registry/log"
logdir = "/var/log/registry/log"
# Log level, DEBUG INFO WARNING ERROR FATAL
loglevel = "INFO"
logrotatenum = 3
logrotatesize = 104857600

[plugin]
alarmfile = "src/main.go"
alarmfile = "alarm.json"
branch = "release"
gitlab = "https://gitlab.xxxx.com"
gitlab = "https://github.com"
token = "xxxxx"
group = "plugin-group"
group = "lodastack-plugins"

[event]
clearURL = "http://event.xxx.com/event/status"
clearURL = "http://127.0.0.1:8001/event/status"

0 comments on commit 40455f3

Please sign in to comment.