Giter Club home page Giter Club logo

Comments (3)

GregYankovoy avatar GregYankovoy commented on May 26, 2024

Hi @Habak1. How is the subdomain pointed to the container? You'll want to make sure it's using at least HTTP 1.1 and allows for connection upgrades for websockets. There's an example available in the readme for nginx.

location ^~ /goaccess {
    resolver 127.0.0.11 valid=30s;
    set $upstream_goaccess goaccess;
    proxy_pass http://$upstream_goaccess:7889/;

    proxy_connect_timeout 1d;
    proxy_send_timeout 1d;
    proxy_read_timeout 1d;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
}

In regards to the different ports, I believe you want to run multiple instances of his container on different ports? This should be possible through native docker arguments. The README provides a sample command to map TCP port 7889 to the container port of 7889. This can be changed to suit your needs. For instance, you can use the below to expose the container on port 8080 of the host:
docker run --name goaccess -p 8080:7889 -v /path/to/host/nginx/logs:/opt/log -v /path/to/goaccess/storage:/config -d gregyankovoy/goaccess

from docker-goaccess.

Habak1 avatar Habak1 commented on May 26, 2024

Thank you very much for the tips. I will try the days to understand and implement it and then report back.

from docker-goaccess.

Habak1 avatar Habak1 commented on May 26, 2024

Hi Greg,
thank you very much for the hints. Now everything works fine.

from docker-goaccess.

Related Issues (15)

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.