h44z / wg-portal

WireGuard Configuration Portal with LDAP connection
https://wgportal.org/
MIT License
933 stars 127 forks source link

Option to bind webserver to specific interface #277

Closed gq97a6 closed 3 months ago

gq97a6 commented 3 months ago

It would be great to see a option to bind the webserver to specific interface. As this container runs with network_mode: host there is no option to bind it to for example to 10.8.0.1 with docker ports config. Currently the only way to prevent public access is through firewall rules. Maybe split the application into two containers, one for the core and one for the web, which would not have to use network_mode: host.

bonddim commented 3 months ago

@gq97a6, did you tried to set

web:
  listening_address: 10.8.0.1:8888

as mentioned in configuration-options ?