1
0

const.go 927 B

123456789101112131415161718192021222324252627282930
  1. package ovpm
  2. const (
  3. // Version defines the version of ovpm.
  4. Version = "0.1.2"
  5. // DefaultVPNPort is the default OpenVPN port to listen.
  6. DefaultVPNPort = "1197"
  7. etcBasePath = "/etc/ovpm/"
  8. varBasePath = "/var/db/ovpm/"
  9. _DefaultConfigPath = etcBasePath + "ovpm.ini"
  10. _DefaultDBPath = varBasePath + "db.sqlite3"
  11. _DefaultVPNConfPath = varBasePath + "server.conf"
  12. _DefaultVPNCCDPath = varBasePath + "ccd/"
  13. _DefaultCertPath = varBasePath + "server.crt"
  14. _DefaultKeyPath = varBasePath + "server.key"
  15. _DefaultCACertPath = varBasePath + "ca.crt"
  16. _DefaultCAKeyPath = varBasePath + "ca.key"
  17. _DefaultDHParamsPath = varBasePath + "dh4096.pem"
  18. _DefaultCRLPath = varBasePath + "crl.pem"
  19. _DefaultServerNetwork = "10.9.0.0"
  20. _DefaultServerNetMask = "255.255.255.0"
  21. )
  22. // Testing is used to determine wether we are testing or running normally.
  23. // Set it to true when testing.
  24. var Testing = false