From 77ce512b703a08e0f09e9fe2cb77b2f81beddcd4 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 17 Jun 2020 02:21:27 +0200 Subject: [PATCH] Update doc for file and swarm providers --- doc/providers/file.md | 4 ++-- doc/providers/swarm.md | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/providers/file.md b/doc/providers/file.md index 7c120a8f..49fb0261 100644 --- a/doc/providers/file.md +++ b/doc/providers/file.md @@ -133,7 +133,7 @@ Sat, 14 Dec 2019 15:32:28 UTC INF Next run in 31 seconds (2019-12-14 15:33:00 +0 ### Configuration file -#### filename +#### `filename` Defines the path to the [configuration file](#yaml-configuration-file). @@ -145,7 +145,7 @@ providers: filename: /path/to/config/conf.yml ``` -#### directory +#### `directory` Defines the path to the directory that contains the [configuration files](#yaml-configuration-file) (`*.yml` or `*.yaml`). diff --git a/doc/providers/swarm.md b/doc/providers/swarm.md index e1678b2e..12d167e2 100644 --- a/doc/providers/swarm.md +++ b/doc/providers/swarm.md @@ -36,6 +36,8 @@ services: - "DIUN_WATCH_SCHEDULE=*/30 * * * *" - "DIUN_PROVIDERS_SWARM=true" deploy: + mode: replicated + replicas: 1 placement: constraints: - node.role == manager @@ -102,8 +104,8 @@ diun_diun.1.i1l4yuiafq6y@docker-desktop | Sat, 14 Dec 2019 16:20:02 CET INF N * `endpoint`: Server address to connect to. Local if empty. * `apiVersion`: Overrides the client version with the specified one. -* `TLSCertsPath`: Path to load the TLS certificates from. -* `TLSVerify`: Controls whether client verifies the server's certificate chain and hostname (default `true`). +* `tlsCertsPath`: Path to load the TLS certificates from. +* `tlsVerify`: Controls whether client verifies the server's certificate chain and hostname (default `true`). * `watchByDefault`: Enable watch by default. If false, services that don't have `diun.enable=true` label will be ignored (default `false`). ### Environment variables