This commit is contained in:
parent
f2c9075858
commit
f3422abd0c
5 changed files with 1832 additions and 314 deletions
|
@ -12,7 +12,7 @@ services:
|
||||||
labels:
|
labels:
|
||||||
traefik.host: _
|
traefik.host: _
|
||||||
traefik.http.services.dashboard.loadbalancer.server.port: 0
|
traefik.http.services.dashboard.loadbalancer.server.port: 0
|
||||||
traefik.http.routers.api.rule: Host(`traefik.wzray.com`)
|
traefik.http.routers.api.rule: Host(`traefik-cpu.wzray.com`)
|
||||||
traefik.http.routers.api.service: api@internal
|
traefik.http.routers.api.service: api@internal
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|
1829
schema.json
Normal file
1829
schema.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,152 +0,0 @@
|
||||||
################################################################
|
|
||||||
#
|
|
||||||
# Configuration sample for Traefik v2.
|
|
||||||
#
|
|
||||||
# For Traefik v1: https://github.com/traefik/traefik/blob/v1.7/traefik.sample.toml
|
|
||||||
#
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# Global configuration
|
|
||||||
################################################################
|
|
||||||
[global]
|
|
||||||
checkNewVersion = true
|
|
||||||
sendAnonymousUsage = true
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# Entrypoints configuration
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
# Entrypoints definition
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default:
|
|
||||||
[entryPoints]
|
|
||||||
[entryPoints.web]
|
|
||||||
address = ":80"
|
|
||||||
|
|
||||||
[entryPoints.websecure]
|
|
||||||
address = ":443"
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# Traefik logs configuration
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
# Traefik logs
|
|
||||||
# Enabled by default and log to stdout
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
#
|
|
||||||
[log]
|
|
||||||
|
|
||||||
# Log level
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: "ERROR"
|
|
||||||
#
|
|
||||||
# level = "DEBUG"
|
|
||||||
|
|
||||||
# Sets the filepath for the traefik log. If not specified, stdout will be used.
|
|
||||||
# Intermediate directories are created if necessary.
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: os.Stdout
|
|
||||||
#
|
|
||||||
# filePath = "log/traefik.log"
|
|
||||||
|
|
||||||
# Format is either "json" or "common".
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: "common"
|
|
||||||
#
|
|
||||||
# format = "json"
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# Access logs configuration
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
# Enable access logs
|
|
||||||
# By default it will write to stdout and produce logs in the textual
|
|
||||||
# Common Log Format (CLF), extended with additional fields.
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
#
|
|
||||||
# [accessLog]
|
|
||||||
|
|
||||||
# Sets the file path for the access log. If not specified, stdout will be used.
|
|
||||||
# Intermediate directories are created if necessary.
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: os.Stdout
|
|
||||||
#
|
|
||||||
# filePath = "/path/to/log/log.txt"
|
|
||||||
|
|
||||||
# Format is either "json" or "common".
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: "common"
|
|
||||||
#
|
|
||||||
# format = "json"
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# API and dashboard configuration
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
# Enable API and dashboard
|
|
||||||
[api]
|
|
||||||
|
|
||||||
# Enable the API in insecure mode
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: false
|
|
||||||
#
|
|
||||||
# insecure = true
|
|
||||||
|
|
||||||
# Enabled Dashboard
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: true
|
|
||||||
#
|
|
||||||
# dashboard = false
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# Ping configuration
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
# Enable ping
|
|
||||||
[ping]
|
|
||||||
|
|
||||||
# Name of the related entry point
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: "traefik"
|
|
||||||
#
|
|
||||||
# entryPoint = "traefik"
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# Docker configuration backend
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
# Enable Docker configuration backend
|
|
||||||
[providers.docker]
|
|
||||||
|
|
||||||
# Docker server endpoint. Can be a tcp or a unix socket endpoint.
|
|
||||||
#
|
|
||||||
# Required
|
|
||||||
# Default: "unix:///var/run/docker.sock"
|
|
||||||
#
|
|
||||||
# endpoint = "tcp://10.10.10.10:2375"
|
|
||||||
|
|
||||||
# Default host rule.
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: "Host(`{{ normalize .Name }}`)"
|
|
||||||
#
|
|
||||||
# defaultRule = "Host(`{{ normalize .Name }}.docker.localhost`)"
|
|
||||||
|
|
||||||
# Expose containers by default in traefik
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: true
|
|
||||||
#
|
|
||||||
# exposedByDefault = false
|
|
|
@ -1,151 +0,0 @@
|
||||||
################################################################
|
|
||||||
#
|
|
||||||
# Configuration sample for Traefik v2.
|
|
||||||
#
|
|
||||||
# For Traefik v1: https://github.com/traefik/traefik/blob/v1.7/traefik.sample.toml
|
|
||||||
#
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# Global configuration
|
|
||||||
################################################################
|
|
||||||
global:
|
|
||||||
checkNewVersion: true
|
|
||||||
sendAnonymousUsage: true
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# EntryPoints configuration
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
# EntryPoints definition
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
#
|
|
||||||
entryPoints:
|
|
||||||
web:
|
|
||||||
address: :80
|
|
||||||
|
|
||||||
websecure:
|
|
||||||
address: :443
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# Traefik logs configuration
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
# Traefik logs
|
|
||||||
# Enabled by default and log to stdout
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
#
|
|
||||||
#log:
|
|
||||||
# Log level
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: "ERROR"
|
|
||||||
#
|
|
||||||
# level: DEBUG
|
|
||||||
|
|
||||||
# Sets the filepath for the traefik log. If not specified, stdout will be used.
|
|
||||||
# Intermediate directories are created if necessary.
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: os.Stdout
|
|
||||||
#
|
|
||||||
# filePath: log/traefik.log
|
|
||||||
|
|
||||||
# Format is either "json" or "common".
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: "common"
|
|
||||||
#
|
|
||||||
# format: json
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# Access logs configuration
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
# Enable access logs
|
|
||||||
# By default it will write to stdout and produce logs in the textual
|
|
||||||
# Common Log Format (CLF), extended with additional fields.
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
#
|
|
||||||
#accessLog:
|
|
||||||
# Sets the file path for the access log. If not specified, stdout will be used.
|
|
||||||
# Intermediate directories are created if necessary.
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: os.Stdout
|
|
||||||
#
|
|
||||||
# filePath: /path/to/log/log.txt
|
|
||||||
|
|
||||||
# Format is either "json" or "common".
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: "common"
|
|
||||||
#
|
|
||||||
# format: json
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# API and dashboard configuration
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
# Enable API and dashboard
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
#
|
|
||||||
#api:
|
|
||||||
# Enable the API in insecure mode
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: false
|
|
||||||
#
|
|
||||||
# insecure: true
|
|
||||||
|
|
||||||
# Enabled Dashboard
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: true
|
|
||||||
#
|
|
||||||
# dashboard: false
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# Ping configuration
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
# Enable ping
|
|
||||||
#ping:
|
|
||||||
# Name of the related entry point
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: "traefik"
|
|
||||||
#
|
|
||||||
# entryPoint: traefik
|
|
||||||
|
|
||||||
################################################################
|
|
||||||
# Docker configuration backend
|
|
||||||
################################################################
|
|
||||||
|
|
||||||
#providers:
|
|
||||||
# Enable Docker configuration backend
|
|
||||||
# docker:
|
|
||||||
# Docker server endpoint. Can be a tcp or a unix socket endpoint.
|
|
||||||
#
|
|
||||||
# Required
|
|
||||||
# Default: "unix:///var/run/docker.sock"
|
|
||||||
#
|
|
||||||
# endpoint: tcp://10.10.10.10:2375
|
|
||||||
|
|
||||||
# Default host rule.
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: "Host(`{{ normalize .Name }}`)"
|
|
||||||
#
|
|
||||||
# defaultRule: Host(`{{ normalize .Name }}.docker.localhost`)
|
|
||||||
|
|
||||||
# Expose containers by default in traefik
|
|
||||||
#
|
|
||||||
# Optional
|
|
||||||
# Default: true
|
|
||||||
#
|
|
||||||
# exposedByDefault: false
|
|
12
traefik.yml
12
traefik.yml
|
@ -1,12 +1,8 @@
|
||||||
# log:
|
|
||||||
# level: DEBUG
|
|
||||||
|
|
||||||
api:
|
api:
|
||||||
dashboard: true
|
dashboard: true
|
||||||
|
|
||||||
global:
|
global:
|
||||||
updaterCallbacks:
|
updaterCallbacks: [http://127.0.0.1:56714/callback]
|
||||||
- 'http://10.161.8.2:8000/callback'
|
|
||||||
|
|
||||||
providers:
|
providers:
|
||||||
docker:
|
docker:
|
||||||
|
@ -29,8 +25,6 @@ entryPoints:
|
||||||
address: ':443'
|
address: ':443'
|
||||||
asDefault: true
|
asDefault: true
|
||||||
http:
|
http:
|
||||||
middlewares:
|
|
||||||
- pretty-errors
|
|
||||||
tls:
|
tls:
|
||||||
certResolver: cloudflare
|
certResolver: cloudflare
|
||||||
domains:
|
domains:
|
||||||
|
@ -43,8 +37,6 @@ entryPoints:
|
||||||
trustedIPs:
|
trustedIPs:
|
||||||
- 0.0.0.0/0
|
- 0.0.0.0/0
|
||||||
http:
|
http:
|
||||||
middlewares:
|
|
||||||
- pretty-errors
|
|
||||||
tls:
|
tls:
|
||||||
certResolver: cloudflare
|
certResolver: cloudflare
|
||||||
domains:
|
domains:
|
||||||
|
@ -59,5 +51,5 @@ entryPoints:
|
||||||
to: https
|
to: https
|
||||||
scheme: https
|
scheme: https
|
||||||
|
|
||||||
# yaml-language-server: $schema=https://json.schemastore.org/traefik-v3.json
|
# yaml-language-server: $schema=schema.json
|
||||||
# defualt schema doesn't permit asDefault property on entrypoints
|
# defualt schema doesn't permit asDefault property on entrypoints
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue