netmaker.default.env 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Email used for SSL certificates
  2. NM_EMAIL=
  3. # The base domain of netmaker
  4. NM_DOMAIN=
  5. # Public IP of machine
  6. SERVER_HOST=
  7. # The admin master key for accessing the API. Change this in any production installation.
  8. MASTER_KEY=
  9. # The username to set for MQ access
  10. MQ_USERNAME=
  11. # The password to set for MQ access
  12. MQ_PASSWORD=
  13. INSTALL_TYPE=
  14. NETMAKER_TENANT_ID=
  15. LICENSE_KEY=
  16. SERVER_IMAGE_TAG=
  17. UI_IMAGE_TAG=
  18. # used for HA - identifies this server vs other servers
  19. NODE_ID=netmaker-server-1
  20. METRICS_EXPORTER=off
  21. PROMETHEUS=off
  22. # Enables DNS Mode, meaning all nodes will set hosts file for private dns settings
  23. DNS_MODE=on
  24. # Enable auto update of netclient ? ENUM:- enabled,disabled | default=enabled
  25. NETCLIENT_AUTO_UPDATE=enabled
  26. # The HTTP API port for Netmaker. Used for API calls / communication from front end.
  27. # If changed, need to change port of BACKEND_URL for netmaker-ui.
  28. API_PORT=8081
  29. EXPORTER_API_PORT=8085
  30. # The "allowed origin" for API requests. Change to restrict where API requests can come from with comma-separated
  31. # URLs. ex:- https://dashboard.netmaker.domain1.com,https://dashboard.netmaker.domain2.com
  32. CORS_ALLOWED_ORIGIN=*
  33. # Show keys permanently in UI (until deleted) as opposed to 1-time display.
  34. DISPLAY_KEYS=on
  35. # Database to use - sqlite, postgres, or rqlite
  36. DATABASE=sqlite
  37. # The address of the mq server. If running from docker compose it will be "mq". Otherwise, need to input address.
  38. # If using "host networking", it will find and detect the IP of the mq container.
  39. # For EMQX websockets use `SERVER_BROKER_ENDPOINT=ws://mq:8083/mqtt`
  40. SERVER_BROKER_ENDPOINT=ws://mq:1883
  41. # Logging verbosity level - 1, 2, or 3
  42. VERBOSITY=1
  43. DEBUG_MODE=off
  44. # Enables the REST backend (API running on API_PORT at SERVER_HTTP_HOST).
  45. REST_BACKEND=on
  46. # If turned "on", Server will not set Host based on remote IP check.
  47. # This is already overridden if SERVER_HOST is set. Turned "off" by default.
  48. DISABLE_REMOTE_IP_CHECK=off
  49. # Whether or not to send telemetry data to help improve Netmaker. Switch to "off" to opt out of sending telemetry.
  50. TELEMETRY=on
  51. ###
  52. #
  53. # OAuth section
  54. #
  55. ###
  56. # only mentioned domains will be allowded to signup using oauth, by default all domains are allowed
  57. ALLOWED_EMAIL_DOMAINS=*
  58. # "<azure-ad|github|google|oidc>"
  59. AUTH_PROVIDER=
  60. # "<client id of your oauth provider>"
  61. CLIENT_ID=
  62. # "<client secret of your oauth provider>"
  63. CLIENT_SECRET=
  64. # "https://dashboard.<netmaker base domain>"
  65. FRONTEND_URL=
  66. # "<only for azure, you may optionally specify the tenant for the OAuth>"
  67. AZURE_TENANT=
  68. # https://oidc.yourprovider.com - URL of oidc provider
  69. OIDC_ISSUER=
  70. # Duration of JWT token validity in seconds
  71. JWT_VALIDITY_DURATION=43200
  72. # Auto disable a user's connecteds clients bassed on JWT token expiration
  73. RAC_AUTO_DISABLE=true
  74. # if turned on data will be cached on to improve performance significantly (IMPORTANT: If HA set to `false` )
  75. CACHING_ENABLED=true