Akkadius / glass-isc-dhcp

Glass - ISC DHCP Server Interface
MIT License
684 stars 142 forks source link

Set IP for ui #76

Closed proboxdev closed 3 years ago

proboxdev commented 3 years ago

Hi, is it possible to configure the IP address the UI should be available on? I only want it on the internal IP not all of them.

Many Thanks

atownsend247 commented 3 years ago

Hi @proboxdev, It is possible to do this already, if you specify host in the config file. See below example for an example, the port can also be configured too using port.

{
  "admin_user": "glassadmin",
  "admin_password": "glassadmin",
  "leases_file": "/var/lib/dhcp/dhcpd.leases",
  "log_file": "/var/log/dhcp.log",
  "config_file": "/etc/dhcp/dhcpd.conf",
  "shared_network_critical_threshold": "95",
  "shared_network_warning_threshold": "0",
  "slack_webhook_url": "",
  "slack_alert_channel": "",
  "leases_per_minute_threshold": "50",
  "ip_ranges_to_allow": [
    ""
  ],
  "email_alert_to": "",
  "sms_alert_to": "",
  "ws_port": 8080,
  "host": "192.168.1.2",
  "port": "3000"
}

Regards -Andrew

proboxdev commented 3 years ago

That's great thanks very much.