summaryrefslogtreecommitdiffstats
path: root/volumes/proxy/traefik_dynamic.toml
diff options
context:
space:
mode:
Diffstat (limited to 'volumes/proxy/traefik_dynamic.toml')
-rw-r--r--volumes/proxy/traefik_dynamic.toml25
1 files changed, 25 insertions, 0 deletions
diff --git a/volumes/proxy/traefik_dynamic.toml b/volumes/proxy/traefik_dynamic.toml
new file mode 100644
index 0000000..cda5b24
--- /dev/null
+++ b/volumes/proxy/traefik_dynamic.toml
@@ -0,0 +1,25 @@
+[http.middlewares.simpleAuth.basicAuth]
+ users = [
+ # username: sandcastles
+ # password: admin
+ "sandcastles:$apr1$Xe1bQOFU$OQ.6qf4QCcRk5E8mQ.yt4."
+ ]
+
+[http.routers.api]
+ rule = "Host(`dashboard.castle`)"
+ entrypoints = ["websecure"]
+ middlewares = ["simpleAuth"]
+ service = "api@internal"
+ [http.routers.api.tls]
+ certResolver = "smallstep"
+
+[http.routers.dockerhost]
+ rule = "Host(`host.castle`)"
+ entrypoints = ["websecure"]
+ service = "dockerhost"
+ [http.routers.dockerhost.tls]
+ certResolver = "smallstep"
+
+[http.services.dockerhost]
+ [http.services.dockerhost.loadbalancer.servers]
+ url = "http://host.docker.internal:5127" \ No newline at end of file