summaryrefslogtreecommitdiffstats
path: root/volumes/proxy/traefik_dynamic.toml
diff options
context:
space:
mode:
authorJenniferplusplus <contact@jenniferplusplus.com>2023-11-12 15:27:50 -0600
committerJenniferplusplus <contact@jenniferplusplus.com>2023-11-12 15:27:50 -0600
commit6054b96d9b02ab8c18100984f0570c328c2904a2 (patch)
treed2e6e58c67a9fb63b7c903f64acc9156c1b2e329 /volumes/proxy/traefik_dynamic.toml
parent2b65cf918a98455e360798cb6b75db58860cbf54 (diff)
downloadsandcastles-6054b96d9b02ab8c18100984f0570c328c2904a2.tar.gz
sandcastles-6054b96d9b02ab8c18100984f0570c328c2904a2.tar.bz2
sandcastles-6054b96d9b02ab8c18100984f0570c328c2904a2.zip
configure traefik and smallstep
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