Giter VIP home page Giter VIP logo

fail2rest's People

Contributors

djengineerllc avatar oisina avatar sean-der avatar strangeman avatar strum355 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fail2rest's Issues

How to settup config ?

Hello,

I used fail2rest from sean-Der on my old server. Now I build a new server and I have problem installing fail2rest from sean-der.
It seems the project is abandonned so I tried to install your version.

When I launch fail2rest I have error about netsoc-consul. I try to disable it but it seems that I haven't the good option to set up the config.
I have try to launch with :
fail2rest -config=/etc/fail2rest.json
or
fail2rest -config /etc/fail2rest.json
but it seems I have the default config in the output :
2021-06-30 10:19:10+02:00 [DEBUG] config.go:22:PrintSettings() config:
{
"consul": {
"enabled": true,
"fail2rest": "fail2rest-token",
"host": "netsoc-consul:8500",
"token": ""
},
"fail2ban": {
"socket": "/var/run/fail2ban/fail2ban.sock"
},
"fail2rest": {
"auth_enabled": true,
"production": false,
"secret": "[secret]"
},
"http": {
"port": 8080
}
}
2021-06-30 10:19:10+02:00 [INFO ] main.go:36:main() Initialising fail2ban connection
fail2ban socket='/var/run/fail2ban/fail2ban.sock'
2021-06-30 10:19:10+02:00 [INFO ] main.go:43:main() Initialising HTTP Server
port='8080'
2021-06-30 10:19:11+02:00 [ERROR] consul.go:107:getSharedSecret() failed to get shared secret
count='4' error='Get "http://netsoc-consul:8500/v1/kv/fail2rest-token": dial tcp: lookup netsoc-consul on 213.186.33.99:53: no such host' limit='4'

cat /etc/fail2rest.json
{
"consul": {
"enabled": false,
"fail2rest": "fail2rest-token",
"host": "netsoc-consul:8500",
"token": ""
},
"fail2ban": {
"socket": "/var/run/fail2ban/fail2ban.sock"
},
"fail2rest": {
"auth_enabled": false,
"production": true,
"secret": "[secret]"
},
"http": {
"port": 5010
}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.