bunkerity / bunkerweb

🛡️ Open-source and next-generation Web Application Firewall (WAF)
https://www.bunkerweb.io
GNU Affero General Public License v3.0
6.4k stars 361 forks source link

[FEATURE] Bunkerweb access to additional nginx "listen" directives #1659

Open CrustyAvocado opened 1 day ago

CrustyAvocado commented 1 day ago

What's needed and why?

I'd like bunkerweb to be able to add/remove additional "listen" directives to its nginx server for specific servers

For example in vanilla nginx I have every server configured to listen on 80 and 443, but some servers I need to listen on an additional dedicated HTTPS port (see example nginx config template below).

    server {
        listen *:80;
        listen [::]:80;
        listen *:443 ssl;
        listen [::]:443 ssl;
        listen *:32400 ssl;
        listen [::]:32400 ssl;

Implementations ideas (optional)

services:
  bunkerweb:
    container_name: bunkerweb
    environment:
      - MULTISITE=yes
      - LISTEN_HTTP=yes
      - LISTEN_HTTPS=yes
      - LISTEN_STREAM=no
      - HTTP_PORT=80
      - HTTPS_PORT=443
      - SERVER_NAME=plex.domain.com radarr.domain.com
      - plex.domain.com_REVERSE_PROXY_HOST=http://172.19.44.44:32400
      - plex.domain.com_HTTPS_PORT=32400      <--- THIS PLEASE
      - radarr.domain.com_REVERSE_PROXY_HOST=http://172.19.44.55:5055
    image: bunkerity/bunkerweb:latest

Code of Conduct

TheophileDiot commented 8 hours ago

Hi, thank you for opening this feature request. Indeed that can be useful, we'll review it and let you know about it !