config.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package config
  2. const (
  3. LOG_LEVEL_OFF = iota
  4. LOG_LEVEL_INFO
  5. LOG_LEVEL_DEBUG
  6. )
  7. var (
  8. // Database
  9. DBConnection = "root:password@tcp(localhost:3306)/karmen_dev"
  10. DBConnectionOpts = "charset=utf8&parseTime=True&loc=Local"
  11. ResetOnBoot = false
  12. AutoMigrateOnBoot = true
  13. RegenerateOnBoot = false
  14. AdminUsername = "admin"
  15. AdminPassword = "admin"
  16. Domain = "foo.org"
  17. // LDAP
  18. LDAPHostAddress = "localhost"
  19. LDAPHostPort = 389
  20. LDAPBindPassword = "admin"
  21. LDAPBindUser = "cn=admin,dc=foo,dc=org"
  22. LDAPRootDN = "dc=foo,dc=org"
  23. LDAPPeopleOU = "Persone"
  24. LDAPTeacherOU = "Docenti"
  25. LDAPGroupsOU = "Gruppi"
  26. LDAPTeachersGroupOU = "Docenti"
  27. // LimeSurvey Remote Control URL
  28. LSAPIRemoteControlUrl = "http://localhost:8081/index.php/admin/remotecontrol"
  29. LSAPIUsername = "admin"
  30. LSAPIPassword = "password"
  31. // WebDAV
  32. WebDAVUrl = "http://localhost:8082/remote.php/webdav/"
  33. WebDavUsername = "admin"
  34. WebDAVPassword = "password"
  35. // Document generator
  36. DocumentRootDir = "documents/"
  37. DocumentConfigFn = "config.yaml"
  38. // Logging
  39. LogLevel = LOG_LEVEL_DEBUG
  40. )