netmaker.default.env 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. # Email used for SSL certificates
  2. NM_EMAIL=
  3. # The base domain of netmaker
  4. NM_DOMAIN=
  5. # Public IPv4 endpoint of machine
  6. SERVER_HOST=
  7. # Public IPv6 endpoint of machine
  8. SERVER_HOST6=
  9. # The admin master key for accessing the API. Change this in any production installation.
  10. MASTER_KEY=
  11. # The username to set for MQ access
  12. MQ_USERNAME=
  13. # The password to set for MQ access
  14. MQ_PASSWORD=
  15. INSTALL_TYPE=
  16. NETMAKER_TENANT_ID=
  17. LICENSE_KEY=
  18. SERVER_IMAGE_TAG=
  19. UI_IMAGE_TAG=
  20. # used for HA - identifies this server vs other servers
  21. NODE_ID=netmaker-server-1
  22. METRICS_EXPORTER=off
  23. PROMETHEUS=off
  24. # Enables DNS Mode, meaning all nodes will set hosts file for private dns settings
  25. DNS_MODE=on
  26. # Enable auto update of netclient ? ENUM:- enabled,disabled | default=enabled
  27. NETCLIENT_AUTO_UPDATE=enabled
  28. # The HTTP API port for Netmaker. Used for API calls / communication from front end.
  29. # If changed, need to change port of BACKEND_URL for netmaker-ui.
  30. API_PORT=8081
  31. EXPORTER_API_PORT=8085
  32. # The "allowed origin" for API requests. Change to restrict where API requests can come from with comma-separated
  33. # URLs. ex:- https://dashboard.netmaker.domain1.com,https://dashboard.netmaker.domain2.com
  34. CORS_ALLOWED_ORIGIN=*
  35. # Show keys permanently in UI (until deleted) as opposed to 1-time display.
  36. DISPLAY_KEYS=on
  37. # Database to use - sqlite, postgres
  38. DATABASE=sqlite
  39. # The address of the mq server. If running from docker compose it will be "mq". Otherwise, need to input address.
  40. # If using "host networking", it will find and detect the IP of the mq container.
  41. # For EMQX websockets use `SERVER_BROKER_ENDPOINT=ws://mq:8083/mqtt`
  42. SERVER_BROKER_ENDPOINT=ws://mq:1883
  43. # Logging verbosity level - 1, 2, or 3
  44. VERBOSITY=1
  45. DEBUG_MODE=off
  46. # Enables the REST backend (API running on API_PORT at SERVER_HTTP_HOST).
  47. REST_BACKEND=on
  48. # If turned "on", Server will not set Host based on remote IP check.
  49. # This is already overridden if SERVER_HOST is set. Turned "off" by default.
  50. DISABLE_REMOTE_IP_CHECK=off
  51. # Whether or not to send telemetry data to help improve Netmaker. Switch to "off" to opt out of sending telemetry.
  52. TELEMETRY=on
  53. ###
  54. #
  55. # OAuth section
  56. #
  57. ###
  58. # only mentioned domains will be allowded to signup using oauth, by default all domains are allowed
  59. ALLOWED_EMAIL_DOMAINS=*
  60. # "<azure-ad|github|google|oidc>"
  61. AUTH_PROVIDER=
  62. # "<client id of your oauth provider>"
  63. CLIENT_ID=
  64. # "<client secret of your oauth provider>"
  65. CLIENT_SECRET=
  66. # "https://dashboard.<netmaker base domain>"
  67. FRONTEND_URL=
  68. # "<only for azure, you may optionally specify the tenant for the OAuth>"
  69. AZURE_TENANT=
  70. # https://oidc.yourprovider.com - URL of oidc provider
  71. OIDC_ISSUER=
  72. # Duration of JWT token validity in seconds
  73. JWT_VALIDITY_DURATION=43200
  74. # Allow a user to connect to multiple networks simultaneously
  75. RAC_RESTRICT_TO_SINGLE_NETWORK=false
  76. # if turned on data will be cached on to improve performance significantly (IMPORTANT: If HA set to `false` )
  77. CACHING_ENABLED=true
  78. # if turned on netclient checks if peers are reachable over private/LAN address, and choose that as peer endpoint
  79. ENDPOINT_DETECTION=true
  80. # config for sending emails
  81. # mail server host
  82. SMTP_HOST=smtp.gmail.com
  83. # mail server port
  84. SMTP_PORT=587
  85. # sender email
  86. EMAIL_SENDER_ADDR=
  87. # sender smtp user, if unset sender email will be used
  88. EMAIL_SENDER_USER=
  89. # sender smtp password
  90. EMAIL_SENDER_PASSWORD=
  91. # default domain for internal DNS lookup
  92. DEFAULT_DOMAIN=nm.internal
  93. # managed dns setting, set to true to resolve dns entries on netmaker network
  94. MANAGE_DNS=true
  95. # set to true, old acl is supported, otherwise, old acl is disabled
  96. OLD_ACL_SUPPORT=true
  97. # if STUN is set to true, hole punch is called
  98. STUN=true
  99. # Metrics Collection Port
  100. METRICS_PORT=51821
  101. # Metrics Collection interval in minutes
  102. PUBLISH_METRIC_INTERVAL=15
  103. # auto delete offline nodes
  104. AUTO_DELETE_OFFLINE_NODES=false