mirror of
https://github.com/evilsocket/arc.git
synced 2024-05-26 22:37:37 +03:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -24,8 +24,6 @@ _testmain.go
|
||||
*.test
|
||||
dist
|
||||
cryptojs_decrypt.js
|
||||
sample_config.json
|
||||
|
||||
_vendor
|
||||
config.json
|
||||
*.db
|
||||
|
||||
2
Makefile
2
Makefile
@@ -27,7 +27,7 @@ test:
|
||||
clean:
|
||||
@rm -rf build
|
||||
|
||||
install: build
|
||||
install:
|
||||
@cp build/$(TARGET) /usr/local/bin/
|
||||
@setcap 'cap_net_bind_service=+ep' /usr/local/bin/$(TARGET)
|
||||
@mkdir -p /usr/local/etc/$(TARGET)
|
||||
|
||||
41
sample_config.json
Normal file
41
sample_config.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"port": 8443,
|
||||
"secret": "",
|
||||
"certificate": "~/arc-certificate.pem",
|
||||
"key": "~/arc-key.pem",
|
||||
"username": "arc",
|
||||
"password": "$2a$10$RuOcSEwPNNFlA/lxjpRY3.3J0tR0LG/FyfG/IXolgdDxPh7.urgGe",
|
||||
"database": "~/db",
|
||||
"token_duration": 60,
|
||||
"compression": true,
|
||||
"scheduler": {
|
||||
"enabled": true,
|
||||
"period": 10,
|
||||
"reports": {
|
||||
"enabled": false,
|
||||
"rate_limit": 60,
|
||||
"filter": [ "login_ok", "login_ko", "token_ko", "update", "record_expired" ],
|
||||
"to": "youremail@gmail.com",
|
||||
"smtp":{
|
||||
"address": "smtp.gmail.com",
|
||||
"port": 587,
|
||||
"username": "youremail@gmail.com",
|
||||
"password": "your smtp password"
|
||||
},
|
||||
"pgp": {
|
||||
"enabled": true,
|
||||
"keys":{
|
||||
"private": "~/server.private.key.asc",
|
||||
"public": "~/my.public.key.asc"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"backups": {
|
||||
"enabled": false,
|
||||
"period": 1800,
|
||||
"folder": "/some/backup/path/",
|
||||
"run": "scp arc-backup.tar user@backup-server:/media/arc_backup/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user