Coder Social home page Coder Social logo

plausiblefeeder's Introduction

Plausible Feeder Traefik Plugin

Traefik plugin that feeds HTTP requests to plausible as pageview events.

Config

// EventEndpoint defines the URL of the events API endpoint of plausible.
EventEndpoint string

// Domains defines the hosts that should be reported to plausible.
// Requests to hosts not in the list will be ignored.
Domains []string

// ReportExtensions defines an alternative list of file extensions that should be reported. The default set is disabled.
ReportExtensions []string

// ReportAllResources defines whether all requests for any resource should be
// reported to plausible.
// By default, only requests that are believed to contain content are reported.
// If enabled, all requests are reported to plausible.
ReportAllResources bool

// ReportAnyHost defines whether all hosts should be reported to plausible.
// By default, only hosts listed in Domains are reported.
// If enabled non-matching requests will be reported using the first domain from Domains.
ReportAnyHost bool

// ReportErrors defines whether error responses should be ignored and not sent to plausible.
// By default only 2xx and 3xx status codes are reported.
// If enabled, 4xx and 5xx status codes will be reported too.
ReportErrors bool

// RemoteIPFromHeader defines which header to get the remote IP from.
// If not defined, the remote IP of the network connection is used.
// If the defined header is missing, the request will be ignored and not reported.
// If the value found in the header is not a valid IP address, the request will be ignored and not reported.
RemoteIPFromHeader string

// QueueSize defines the size of the queue size, ie. the amount events that
// are waiting to be submitted to plausible.
// Minimum is 100.
QueueSize int

// DebugLogging defines whether debug information should be logged.
// Warning: It's a lot!
DebugLogging bool

plausiblefeeder's People

Contributors

dhaavi avatar

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.