WebThingsIO / gateway-docker

Legacy docker image for WebThings Gateway - now moved to main gateway repo at https://github.com/WebThingsIO/gateway
Mozilla Public License 2.0
72 stars 25 forks source link

How to configure the port? #13

Closed MatthiasLohr closed 5 years ago

MatthiasLohr commented 5 years ago

Hello,

can I pass parameters or modify a configuration file in that way, that the things webinterface listens on other ports than 8080 etc.? On the machine where I want to run this Docker image is already a service listening on port 8080 - and when running it with --net=host the port parameters have no effect.

Any solution for that?

Best regards Matthias

mrstegeman commented 5 years ago

We have a local config file, but it's apparently not even being used. After mozilla-iot/gateway#1502 is merged (and I build a new image), you can edit /path/to/shared/data/config/local.json as such:

{
  "ports": {
    "https": 443,
    "http": 80
  }
}