Skip to content

InfluxDB

🛠 Installation

Default Port: 8086

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/influxdb.sh)"

shell bash -c "$(wget -qLO - https://github.com/asylumexp/Proxmox/raw/main/ct/influxdb.sh)"

âš™ Config

Make symlinks to repo.

Traefik

homelab/pve/traefik/conf.d/influxdb.yaml
---
http:
 #region routers 
  routers:
    influxdb:
      entryPoints:
        - "websecure"
      rule: "Host(`influxdb.l.nicholaswilde.io`)"
      middlewares:
        - default-headers@file
        - https-redirectscheme@file
      tls: {}
      service: influxdb  
#endregion
#region services
  services:
    influxdb:
      loadBalancer:
        servers:
          - url: "http://192.168.2.15:8086"
        passHostHeader: true
#endregion
  middlewares:
    https-redirectscheme:
      redirectScheme:
        scheme: https
        permanent: true
    default-headers:
      headers:
        frameDeny: true
        browserXssFilter: true
        contentTypeNosniff: true
        forceSTSHeader: true
        stsIncludeSubdomains: true
        stsPreload: true
        stsSeconds: 15552000
        customFrameOptionsValue: SAMEORIGIN
        customRequestHeaders:
          X-Forwarded-Proto: https

    default-whitelist:
      ipAllowList:
        sourceRange:
        - "10.0.0.0/8"
        - "192.168.0.0/16"
        - "172.16.0.0/12"

    secured:
      chain:
        middlewares:
        - default-whitelist
        - default-headers

🔗 References