Skip to content

Config's log_options resets after restart #129

@chelog

Description

@chelog

Hello! I am trying to change logging driver for Docker containers to use Loki with following property value:

docker:
  // ... other options
  log_config:
    driver: loki
    config:
      loki-url: http://127.0.0.1:3100/loki/api/v1/push
      loki-retries: 5
      loki-batch-size: 400

But right after I restart the Wings instance it immediately populates config section with default properties which break integration:

  log_config:
    type: loki
    config:
      compress: "false"
      loki-batch-size: "400"
      loki-retries: "5"
      loki-url: http://127.0.0.1:3100/loki/api/v1/push
      max-file: "1"
      max-size: 5m
      mode: non-blocking

I think it has to do something with setting defaults for the config file and opened a PR matching the one from Pterodactyl Wings, however unfortunately one of Pelican contributors said that they eventually reverted the change due to breaking the config generation.

Is there a way to override logging driver with Wings config?

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