Giter Site home page Giter Site logo

Comments (7)

TheophileDiot avatar TheophileDiot commented on June 5, 2024 1

Hi @sbe-arg, yes you can. Are you creating the config via the web UI ?

Also it would really help if you could provide the following information:

  • The version you’re using of BunkerWeb
  • The integration you’re using
  • Some system information like your OS
  • Your BW configuration (e.g. : compose file, variables.env, …)
  • Some logs if they are available

from bunkerweb.

TheophileDiot avatar TheophileDiot commented on June 5, 2024 1

Hi @sbe-arg, happy to hear you found a solution !
Enjoy bunkerizing your services πŸš€

from bunkerweb.

sbe-arg avatar sbe-arg commented on June 5, 2024

Was setting it up via docker compose.

Using the latest version and the autoconf

The host is ubuntu 22.04

Ill paste the template tomorrow I'm afk atm

from bunkerweb.

TheophileDiot avatar TheophileDiot commented on June 5, 2024

No worries, thank you for that information πŸ™

from bunkerweb.

sbe-arg avatar sbe-arg commented on June 5, 2024

In my direct attempts without NPM, directly exposing the http and https bunker ports loop crashes requesting the cert or certs if I add more sites. Basically same setup without the following block.

      - USE_REAL_IP=yes
      - USE_PROXY_PROTOCOL=yes
      - REAL_IP_FROM=192.168.1.ip/32 # <<< the ip of the proxy manager
      #- REAL_IP_HEADER=X-Forwarded-For # <<< I have no clue if I have explicitly set X-Forwarded-For in NPM

It relates to this topic. About how to place it behind NPM: #608

in NPM sub.domain.tld (handles the domain) > destination http://ip-bunkerweb:port

name: 'waf'

services:

  bunkerweb:
    image: bunkerity/bunkerweb:1.5.6
    ports:
      - 20080:8080 # triying to place it behind nginx proxy manager
      - 20443:8443 # triying to place it behind nginx proxy manager
    labels:
      - "bunkerweb.INSTANCE=yes"
    environment:
      - USE_REAL_IP=yes
      - USE_PROXY_PROTOCOL=yes
      - REAL_IP_FROM=192.168.1.ip/32 # <<< the ip of the proxy manager
      #- REAL_IP_HEADER=X-Forwarded-For # <<< I have no clue if I have explicitly set X-Forwarded-For in NPM
      - API_WHITELIST_IP=127.0.0.0/8 10.20.30.0/24 192.168.1.0/24
      - MULTISITE=yes
      - SERVER_NAME=sub.domain.tld
      - USE_REVERSE_PROXY=yes # Will be applied to all server config
      - REVERSE_PROXY_URL=/ # Will be applied to all server config
      - sub.domain.tld_REVERSE_PROXY_HOST=http://192.168.1.ip:port
    networks:
      - bw-universe
      - bw-services

  bw-scheduler:
    image: bunkerity/bunkerweb-scheduler:1.5.6
    depends_on:
      - bunkerweb
      - bw-docker
    volumes:
      - bw-data:/data
    environment:
      - DOCKER_HOST=tcp://bw-docker:2375
    networks:
      - bw-universe
      - bw-docker

  bw-docker:
    image: tecnativa/docker-socket-proxy:nightly
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      - CONTAINERS=1
      - LOG_LEVEL=warning
    networks:
      - bw-docker

volumes:
  bw-data:

networks:
  bw-universe:
    name: bw-universe
    ipam:
      driver: default
      config:
        - subnet: 10.20.30.0/24
  bw-services:
    name: bw-services
  bw-docker:
    name: bw-docker

from bunkerweb.

sbe-arg avatar sbe-arg commented on June 5, 2024

this is the lets encrypt crash

bunkerweb-1  | 2024/05/05 21:35:35 [error] 51#51: [LETSENCRYPT] error while reading files : /var/cache/bunkerweb/letsencrypt/etc/live/sub.domain.tld/fullchain.pem = /var/cache/bunkerweb/letsencrypt/etc/live/sub.domain.tld/fullchain.pem: No such file or directory
bunkerweb-1  | 2024/05/05 21:35:35 [error] 51#51: [INIT] letsencrypt:init() call failed : error reading files

from bunkerweb.

sbe-arg avatar sbe-arg commented on June 5, 2024

Actually.. big big apologies...
I had a block rule for the new host that I moved all containers to...

it now works fine 🀦

from bunkerweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.