bestlibre / hassio-addons

173 stars 109 forks source link

Caddy: not a valid value for dictionary value @ data['options'] #124

Closed Chiunownow closed 5 years ago

Chiunownow commented 5 years ago

config.json

{
  "homeassistant": "ha.xxxxx.xxx",
  "vhosts":  [
    {
      "vhost": "router.xxxxx.xxx",
      "remote": "192.168.123.1",
      "port": "80"
    }
],
  "raw_config": [],
  "email": "mymail@gmail.com"
}

error notify

not a valid value for dictionary value @ data['options']. Got {'homeassistant': 'ha.xxxxx.xxx', 'vhosts': [{'vhost': 'router.xxxxx.xxx', 'remote': '192.168.123.1', 'port': '80'}], 'raw_config': [], 'email': 'mymail@gmail.com'}

caddy proxy 0.11.5-1

Chiunownow commented 5 years ago
{
  "homeassistant": "ha.xxxxx.xyz",
  "vhosts": [
    {
      "vhost": "router.xxxxx.xyz",
      "port": "80",
      "paths": [
        "/ 192.168.123.1:80"
      ]
    }
],
  "raw_config": [],
  "email": "xxxxxx@gmail.com"
}

then caddy can start