Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Statistics logging not working in docker environment #114

@francislavoie

Description

@francislavoie

The fix in #31, i.e. DNS resolver, doesn't solve the issue for me.

The problem is that action() is used in HttpStatisticsLogger to push the stats. This is an issue for me, because the URL for HTTP is different for internal services than external users. Since the websockets server is running in its own container, I need it to reach out directly to my webserver container for it to work.

In this case, I have a websockets container and a caddy container, so I need HttpStatisticsLogger to make requests to http://caddy or whatever that IP resolves to (using Docker's DNS resolver).

Should we add an config('url') override as a config option? I think that might be the simplest way to solve this. I don't think it's a correct assumption that APP_URL will always allow a backend service to connect to itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions