1
0

const.go 1.0 KB

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