Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Add support for plugins #15

Merged
merged 3 commits into from
Sep 8, 2024
Merged

Add support for plugins #15

merged 3 commits into from
Sep 8, 2024

Conversation

spatterIight
Copy link
Contributor

Closes #14

Tested and verified working with the following configuration:

devture_traefik_plugin_support_enabled: true

devture_traefik_configuration_extension_yaml: |
  providers:
    file:
      directory: /config/
      watch: true
      filename: ""
  serversTransport:
    insecureSkipVerify: true

  experimental:
    plugins:
      geoblock:
        moduleName: "github.com/PascalMinder/geoblock"
        version: "v0.2.8"

aux_file_definitions:
  - dest: "{{ devture_traefik_config_dir_path }}/element.spatterlight.space.yml"
    content: |
      http:
        routers:
          element-router:
            rule: Host(`element.spatterlight.space`)
            service: element-service
            entryPoints:
              - web-secure
            tls:
              certResolver: default
            middlewares:
              - geoblock-middleware

        middlewares:
          geoblock-middleware:
            plugin:
              geoblock:
                silentStartUp: false
                allowLocalRequests: false
                logLocalRequests: false
                logAllowedRequests: false
                logApiRequests: false
                ignoreAPITimeout: false
                api: "https://get.geojs.io/v1/ip/country/{ip}"
                apiTimeoutMs: 750
                cacheSize: 15
                forceMonthlyUpdate: true
                allowUnknownCountries: false
                unknownCountryApiResponse: "nil"
                blackListMode: false
                addCountryHeader: false
                countries:
                  - US

        services:
          element-service:
            loadBalancer:
              servers:
                - url: "http://172.24.16.2:80"
    owner: "traefik"
    group: "traefik"

@spantaleev spantaleev merged commit 690281b into devture:main Sep 8, 2024
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Traefik Plugins: unable to create plugins due to read-only file system
2 participants