或在服务的答案发送到客户端之前)调整请求的方法。 Traefik 中有几个可用的中间件,有的可以修改请求...
/var/run/docker.sock - '~/caddy/data:/data' labels: caddy: (cftls) caddy.tls.dns: cloudflare "API-KEY-HERE" caddy.tls.resolvers: 1.1.1.1 # Container that uses Caddy who: image: traefik/whoami networks: - frontend labels: caddy: who-am-i.my-domain.com caddy.reverse_proxy: "{{...
$ docker pull igoramadas/cloudflare-allowme $ docker run -it --name cloudflare-allowme \ -p 80:8080 \ -e ALLOWME_CF_TOKEN=MY_API_TOKEN \ -e ALLOWME_CF_ZONE=MYDOMAIN.COM \ -e ALLOWME_SERVER_SECRET=MY_SUPER_SECRET_KEY igoramadas/cloudflare-allowme Running directly with Node.js Fir...
2. Create a CrowdSec API Key for Cloudflare Bouncer Before we start configuring the Cloudflare Bouncer, let's generate an API key to allow it to connect to CrowdSec API (aka LAPI). Use the following command to generate the key forcloudflare-bouncer-dshb(name it whatever you want).Remember ...
Create.envfile with the required environmental variables: DOCKERDIR (docker root folder /volume1/Docker), PUID, PGID, TZ, SERVER_IP, DOMAINNAME_HOME_SERVER, CLOUDFLARE_EMAIL, and CLOUDFLARE_API_KEY. Create Traefik 2 folders and files in the docker root:traefik2/traefik.log,traefik2/rules/,...
Obtain your API key from Cloudflare website (see this) Obtain your zone identifier for your domain name, from the domain's overview page written asZone ID Find youridentifierin theidfield with ZONEID=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa EMAIL=example@example.com APIKEY=aaaaaaaaaaaaaaaaaa cur...
_API_KEY: api CLOUDFLARE_EMAIL: email image: traefik:livarot labels: traefik.enable: "true" traefik.http.middlewares.basic-auth.basicauth.users: user:pass traefik.http.routers.api.middlewares: basic-auth traefik.http.routers.api.rule: Host(`traefik.example.ovh`) traefik.http.routers.api....
containerPort: 443 - name: admin containerPort: 8080 volumeMounts: - name: certificates mountPath: /etc/traefik/certs env: - name: CF_DNS_API_TOKEN valueFrom: secretKeyRef: name: cloudflare key: CF_ZONE_API_TOKEN volumes: - name: certificates persistentVolumeClaim: claimName: traefik-certs...
apiVersion:cert-manager.io/v1kind:ClusterIssuermetadata:name:letsencrypt-prodspec:acme:privateKeySecretRef:name:letsencrypt-prodserver:https://acme-v02.api.letsencrypt.org/directorysolvers: -{{- if eq $issuerType "cloudflare" }}dns01:cloudflare:apiTokenSecretRef:name:cloudflare-api-token-secret...
$ docker pull igoramadas/cloudflare-allowme $ docker run -it --name cloudflare-allowme \ -p 80:8080 \ -e ALLOWME_CF_TOKEN=MY_API_TOKEN \ -e ALLOWME_CF_ZONE=MYDOMAIN.COM \ -e ALLOWME_SERVER_SECRET=MY_SUPER_SECRET_KEY igoramadas/cloudflare-allowme Running directly with Node.js Fir...