The Poor Man's (or Woman's) Intrusion Detection System
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

69 lines
2.2 KiB

  1. // This configuration file is used by C++CMS and trafficctrl. Most of the
  2. // format is described on the C++CMS website at:
  3. // http://cppcms.com/wikipp/en/page/cppcms_1x_config
  4. // Its syntax is JSON with the addition of C++ single line remarks, as seen
  5. // here.
  6. // NOTE: At this time no form of security is provided in this application. Its
  7. // expected it will be run through a proxy that will provide httpS & an
  8. // authentication mechanism.
  9. {
  10. // The database to use. See the C++DB connection string reference at:
  11. // http://cppcms.com/sql/cppdb/connstr.html
  12. // This is a MySQL example replace the {...} parts with your site's settings.
  13. "trafficctrl": {
  14. "db": "mysql:user={username};password={password};database={db_name};@pool_size=10;@opt_reconnect=1"
  15. // Root URI (path) within a site. If using the stand alone HTTP server this
  16. // needs to match "http.script". But in that case leave both "".
  17. "root_uri": "", // root path on the hosting site. "" = "/"
  18. },
  19. // These are C++CMS engine settings. See here for details:
  20. // http://cppcms.com/wikipp/en/page/cppcms_1x_config
  21. // This is a stand alone HTTP server setup:
  22. // "service": {
  23. // "api" : "http", // fastcgi
  24. // "ip": "0.0.0.0",
  25. // "port" : 8080
  26. // // or "socket": "path..."
  27. // },
  28. // "http" : { "script": "" },
  29. // This is a FastCGI example, which could be used to provide HTTPS & passwords
  30. // via the host service:
  31. "service": {
  32. "api" : "fastcgi",
  33. // To serve on a TCP socket: "ip": "0.0.0.0", "port": 8080
  34. // or a socket. preferred if lesser privlieged users have access
  35. // to the server:
  36. "socket": "/run/poorman-ids/traffcctl.fcgi"
  37. },
  38. // In context of restricted access environment this is probably OK.
  39. "security" : {
  40. "display_error_message": true,
  41. // This requires JFP patches applied to C++CMS
  42. //"email_error_message": "SysOp@domain.net",
  43. },
  44. // This tells us to run in background, as a daemon and to send errors to
  45. // SysLog. You can run this at the console by remarking out everything below.
  46. // Well.. other than the final '}'
  47. "daemon": {
  48. "enable": true,
  49. "lock": "/run/poorman-ids/trafficctrl.pid",
  50. },
  51. "logging": {
  52. "syslog": {
  53. "enable": true,
  54. "id": "trafficctrl"
  55. }
  56. }
  57. }