first
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
ttp:
|
||||
routers:
|
||||
custom-secure:
|
||||
rule: "Host(`url_service`)"
|
||||
service: "custom-service"
|
||||
entrypoints: ["https"]
|
||||
middlewares:
|
||||
- "custom-https-redirect"
|
||||
tls:
|
||||
certResolver: "http"
|
||||
psw:
|
||||
rule: "Host(`url_service`)"
|
||||
entrypoints: ["http"]
|
||||
middlewares:
|
||||
- "custom-https-redirect"
|
||||
service: "custom-service"
|
||||
|
||||
middlewares:
|
||||
custom-https-redirect:
|
||||
redirectScheme:
|
||||
scheme: "https"
|
||||
permanent: true
|
||||
|
||||
services:
|
||||
custom-service:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "http://service:80"
|
||||
@@ -0,0 +1,24 @@
|
||||
api:
|
||||
dashboard: true
|
||||
|
||||
entryPoints:
|
||||
http:
|
||||
address: ":80"
|
||||
https:
|
||||
address: ":443"
|
||||
|
||||
providers:
|
||||
docker:
|
||||
endpoint: "unix:///var/run/docker.sock"
|
||||
exposedByDefault: false
|
||||
file:
|
||||
directory: /custom
|
||||
watch: true
|
||||
|
||||
certificatesResolvers:
|
||||
http:
|
||||
acme:
|
||||
email: mail@3err0.ru
|
||||
storage: acme.json
|
||||
httpChallenge:
|
||||
entryPoint: http
|
||||
Reference in New Issue
Block a user