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.
 
 
 
 

66 lines
2.0 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. },
  16. // These are C++CMS engine settings. See here for details:
  17. // http://cppcms.com/wikipp/en/page/cppcms_1x_config
  18. // This is a stand alone HTTP server setup:
  19. // "service": {
  20. // "api" : "http", // fastcgi
  21. // "ip": "0.0.0.0",
  22. // "port" : 8080
  23. // // or "socket": "path..."
  24. // },
  25. // "http" : { "script": "" },
  26. // This is a FastCGI example, which could be used to provide HTTPS & passwords:
  27. "service": {
  28. "api" : "fastcgi",
  29. // To serve on a TCP socket: "ip": "0.0.0.0", "port": 8080
  30. // or a socket. preferred if lesser privlieged users have access
  31. // to the server:
  32. "socket": "/run/poorman-ids/traffcctl.fcgi
  33. },
  34. // In context of restricted access environment this is probably OK.
  35. "security" : {
  36. "display_error_message": true,
  37. // This requires JFP patches applied to C++CMS
  38. //"email_error_message": "SysOp@domain.net",
  39. },
  40. // This tells us to run in background, as a daemon and to send errors to
  41. // SysLog. You can run this at the console by remarking out everything below.
  42. // Well.. other than the final '}'
  43. "daemon": {
  44. "enable": true,
  45. "lock": "/run/poorman-ids/trafficctrl.pid",
  46. "user": "www-data"
  47. },
  48. "logging": {
  49. "syslog": {
  50. "enable": true,
  51. "id": "trafficctrl"
  52. }
  53. }
  54. }