asciimoo / morty

Privacy aware web content sanitizer proxy as a service
GNU Affero General Public License v3.0
484 stars 57 forks source link

Var to enable/disable debug logs #80

Closed madmath03 closed 5 years ago

madmath03 commented 5 years ago

:sparkles: Var to enable/disable debug logs to close #79

Startup and configuration errors are still displayed with DEBUG to false, but any proxied or redirected resources will not appear in the logs. This will allow to remove the driver: none when using docker-compose while still keeping privacy:

https://github.com/searx/searx-docker/blob/master/docker-compose.yaml:

  morty:
    container_name: morty
    image: dalf/morty
    hostname: morty
    restart: always
    ports:
      - 127.0.0.1:3000:3000
    networks:
      searx:
        ipv4_address: 10.10.10.5
    command: -listen 10.10.10.5:3000 -timeout 6 -ipv6
    environment:
      - DEBUG=false
      - MORTY_KEY=${MORTY_KEY}
    read_only: true
    cap_drop:
      - ALL
madmath03 commented 5 years ago

@asciimoo Sure. Done.