init commit
This commit is contained in:
2
3.Traefik/data/.gitignore
vendored
Normal file
2
3.Traefik/data/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
acme.json
|
||||
logs/*
|
19
3.Traefik/data/custom/allow-redirect.yml
Normal file
19
3.Traefik/data/custom/allow-redirect.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
http:
|
||||
routers:
|
||||
redirs:
|
||||
rule: hostregexp(`{host:.+}`)
|
||||
entrypoints:
|
||||
- http
|
||||
middlewares:
|
||||
- redirect-to-https
|
||||
service: noop
|
||||
middlewares:
|
||||
redirect-to-https:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
permanent: false
|
||||
services:
|
||||
noop:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://127.0.0.1"
|
46
3.Traefik/data/custom/nginx-docker-node1.yml
Normal file
46
3.Traefik/data/custom/nginx-docker-node1.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
http:
|
||||
routers:
|
||||
external-docker-route:
|
||||
entryPoints:
|
||||
- https
|
||||
service: test2
|
||||
middlewares:
|
||||
- test2-auth
|
||||
- test-retry
|
||||
# - test2-whitelist
|
||||
# - testHeader
|
||||
rule: Host(`test2.tfm.zone`) # "Host(`example.com`) || (Host(`example.org`) && Path(`/traefik`))"
|
||||
tls:
|
||||
certResolver: letsEncrypt
|
||||
# middlewares
|
||||
middlewares:
|
||||
test2-auth:
|
||||
basicAuth:
|
||||
users:
|
||||
- "admin:$2y$05$Ixy4UWIEe7z5/xyhMEerveBs7bOWQVUCJAIL.55ANTzlLJWHnaqJ6" # not escaped $$ !
|
||||
test2-whitelist:
|
||||
ipWhiteList:
|
||||
sourceRange:
|
||||
- "127.0.0.1/32"
|
||||
- "8.8.8.8/32"
|
||||
test-retry:
|
||||
retry:
|
||||
attempts: 4
|
||||
testHeader:
|
||||
headers:
|
||||
accessControlAllowMethods:
|
||||
- GET
|
||||
- OPTIONS
|
||||
- PUT
|
||||
accessControlAllowOriginList:
|
||||
- https://foo.bar.org
|
||||
- https://example.org
|
||||
accessControlMaxAge: 100
|
||||
addVaryHeader: true
|
||||
# Services
|
||||
services:
|
||||
test2:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://95.216.205.111:8080
|
||||
passHostHeader: true
|
65
3.Traefik/data/traefik.yml
Normal file
65
3.Traefik/data/traefik.yml
Normal file
@@ -0,0 +1,65 @@
|
||||
global:
|
||||
checkNewVersion: true
|
||||
|
||||
log:
|
||||
filePath: /var/log/log.log
|
||||
format: common # or json
|
||||
level: "DEBUG" # DEBUG, PANIC, FATAL, ERROR, WARN, or INFO
|
||||
|
||||
accessLog:
|
||||
filePath: /var/log/access.log
|
||||
format: common # or json
|
||||
bufferingSize: 100
|
||||
filters:
|
||||
statusCodes:
|
||||
- "200"
|
||||
- "300-302"
|
||||
- "500-503"
|
||||
retryAttempts: true
|
||||
minDuration: "10ms"
|
||||
|
||||
api:
|
||||
dashboard: true
|
||||
|
||||
entryPoints:
|
||||
http:
|
||||
address: ":80"
|
||||
https:
|
||||
address: ":443"
|
||||
metrics:
|
||||
address: ":8082"
|
||||
|
||||
metrics:
|
||||
prometheus: # datadog, statsD, influxDB
|
||||
entryPoint: metrics
|
||||
|
||||
http:
|
||||
routers:
|
||||
redirs-docker:
|
||||
rule: hostregexp(`{host:.+}`)
|
||||
entrypoints:
|
||||
- http
|
||||
middlewares:
|
||||
- redirect-docker-to-https
|
||||
middlewares:
|
||||
redirect-docker-to-https:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
permanent: false
|
||||
|
||||
providers:
|
||||
docker:
|
||||
endpoint: "unix:///var/run/docker.sock"
|
||||
exposedByDefault: false
|
||||
file:
|
||||
directory: /custom
|
||||
watch: true
|
||||
|
||||
certificatesResolvers:
|
||||
letsEncrypt:
|
||||
acme:
|
||||
email: info@tfm.zone # Change e-mail !
|
||||
storage: acme.json
|
||||
#caServer: "https://acme-staging-v02.api.letsencrypt.org/directory" # for tests only
|
||||
httpChallenge:
|
||||
entryPoint: http
|
Reference in New Issue
Block a user