-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,4 @@ build | |
logvac | ||
logvac.json | ||
*.cover* | ||
db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This boxfile is for use with nanobox.io's `nanbox` cli. Simply | ||
# run `nanobox run` to test/develop, or run `nanobox deploy dry-run` | ||
# to utilize. (Note the port mapping that will occur in dry-run) | ||
|
||
run.config: | ||
engine: 'golang' | ||
engine.config: | ||
package: 'github.com/nanopack/logvac' | ||
extra_steps: | ||
- go get github.com/nanopack/mist | ||
- go build -o logvac | ||
|
||
deploy.config: | ||
extra_steps: | ||
- go get github.com/nanopack/mist | ||
- cp $(which mist) $APP_DIR/mist | ||
- cp $CODE_DIR/config.json $APP_DIR/config.json | ||
|
||
data.storage: | ||
image: nanobox/unfs | ||
|
||
web.logvac: | ||
network_dirs: | ||
data.storage: | ||
- db/ | ||
ports: | ||
- tcp:8080:1445 # for mist (subscribe to logs) | ||
- tcp:6360:6360 # for adding users or posting logs via http | ||
- tcp:6361:6361 # for submitting logs via tcp | ||
- udp:514:6361 # for submitting logs via udp | ||
start: | ||
mist: './mist --server --listeners "tcp://0.0.0.0:1445"' | ||
logvac: './logvac -c config.json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"listen-http": "0.0.0.0:6360", | ||
"listen-udp": "0.0.0.0:6361", | ||
"listen-tcp": "0.0.0.0:6361", | ||
"pub-address": "mist://localhost:1445", | ||
"pub-auth": "secret", | ||
"db-address": "boltdb:///app/db/db.bolt", | ||
"auth-address": "boltdb:///app/db/log-auth.bolt", | ||
"log-keep": "{\"app\":\"5m\"}", | ||
"log-type": "app", | ||
"log-level": "debug", | ||
"token": "secret", | ||
"server": true, | ||
"insecure": true | ||
} |