用 goaccess 分析 Nginx Proxy Manager(NPM) 紀錄檔

  • mkdir goaccess-for-nginxproxymanager
    cd goaccess-for-nginxproxymanager
    vi docker-compose.yml

    version: '3.3'
    services:
        goaccess:
            image: 'xavierh/goaccess-for-nginxproxymanager:latest'
            container_name: goaccess
            restart: always
            ports:
                - '7880:7880'
            environment:
                - TZ=Asia/Taipei
                - SKIP_ARCHIVED_LOGS=False #optional
                - DEBUG=False #optional
                - BASIC_AUTH=False #optional
                - BASIC_AUTH_USERNAME=user #optional
                - BASIC_AUTH_PASSWORD=pass #optional   
                - EXCLUDE_IPS=127.0.0.1 #optional - comma delimited 
                - LOG_TYPE=NPM #optional - more information below
                - ENABLE_BROWSERS_LIST=True #optional - more information below
                - CUSTOM_BROWSERS=Kuma:Uptime,TestBrowser:Crawler #optional - comma delimited, more information below
                - HTML_REFRESH=5 #optional - Refresh the HTML report every X seconds. https://goaccess.io/man
                - KEEP_LAST=30 #optional - Keep the last specified number of days in storage. https://goaccess.io/man
            volumes:
            - ../nginx-proxy-manager/data/logs:/opt/log
    docker compose up -d
    docker compose logs -f
  • tech/goaccess-for-nginxproxymanager.txt
  • 上一次變更: 2024/01/20 22:08
  • jonathan