2018-11-25 11:07:09 +00:00
|
|
|
################################################################
|
|
|
|
# Global configuration
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Enable debug mode
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: false
|
|
|
|
#
|
2019-04-11 22:03:11 +00:00
|
|
|
debug = {{ traefik_debug }}
|
2018-11-25 11:07:09 +00:00
|
|
|
|
|
|
|
# Log level
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "ERROR"
|
|
|
|
#
|
|
|
|
# logLevel = "DEBUG"
|
|
|
|
|
|
|
|
# Entrypoints to be used by frontends that do not specify any entrypoint.
|
|
|
|
# Each frontend can specify its own entrypoints.
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: ["http"]
|
|
|
|
#
|
|
|
|
defaultEntryPoints = ["http", "https"]
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
# Entrypoints configuration
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
[entryPoints]
|
|
|
|
[entryPoints.http]
|
2020-01-16 05:19:15 +00:00
|
|
|
address = ":{{ traefik_port_http }}"
|
2018-11-25 11:07:09 +00:00
|
|
|
[entryPoints.http.redirect]
|
|
|
|
entryPoint = "https"
|
|
|
|
|
|
|
|
[entryPoints.https]
|
2020-01-16 05:19:15 +00:00
|
|
|
address = ":{{ traefik_port_https }}"
|
2018-11-25 11:07:09 +00:00
|
|
|
[entryPoints.https.tls]
|
2019-04-11 22:03:11 +00:00
|
|
|
|
2018-11-25 11:07:09 +00:00
|
|
|
[entryPoints.traefik]
|
2020-01-16 05:19:15 +00:00
|
|
|
address = ":{{ traefik_port_ui }}"
|
2018-11-25 11:07:09 +00:00
|
|
|
|
|
|
|
################################################################
|
|
|
|
# Traefik logs configuration
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Traefik logs
|
|
|
|
# Enabled by default and log to stdout
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
#
|
|
|
|
# [traefikLog]
|
|
|
|
|
|
|
|
# Sets the filepath for the traefik log. If not specified, stdout will be used.
|
|
|
|
# Intermediate directories are created if necessary.
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: os.Stdout
|
|
|
|
#
|
|
|
|
# filePath = "log/traefik.log"
|
|
|
|
|
|
|
|
# Format is either "json" or "common".
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "common"
|
|
|
|
#
|
|
|
|
# format = "common"
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
# Access logs configuration
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Enable access logs
|
|
|
|
# By default it will write to stdout and produce logs in the textual
|
|
|
|
# Common Log Format (CLF), extended with additional fields.
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
#
|
|
|
|
# [accessLog]
|
|
|
|
|
|
|
|
# Sets the file path for the access log. If not specified, stdout will be used.
|
|
|
|
# Intermediate directories are created if necessary.
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: os.Stdout
|
|
|
|
#
|
|
|
|
# filePath = "/path/to/log/log.txt"
|
|
|
|
|
|
|
|
# Format is either "json" or "common".
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "common"
|
|
|
|
#
|
|
|
|
# format = "common"
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
# API and dashboard configuration
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Enable API and dashboard
|
|
|
|
[api]
|
|
|
|
|
|
|
|
# Name of the related entry point
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "traefik"
|
|
|
|
#
|
|
|
|
entryPoint = "traefik"
|
|
|
|
|
|
|
|
# Enabled Dashboard
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: true
|
|
|
|
#
|
|
|
|
dashboard = true
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
# Ping configuration
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Enable ping
|
|
|
|
[ping]
|
|
|
|
|
|
|
|
# Name of the related entry point
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: "traefik"
|
|
|
|
#
|
|
|
|
# entryPoint = "traefik"
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
# Docker configuration backend
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Enable Docker configuration backend
|
|
|
|
[docker]
|
|
|
|
|
|
|
|
# Docker server endpoint. Can be a tcp or a unix socket endpoint.
|
|
|
|
#
|
|
|
|
# Required
|
|
|
|
# Default: "unix:///var/run/docker.sock"
|
|
|
|
#
|
|
|
|
# endpoint = "tcp://10.10.10.10:2375"
|
|
|
|
|
|
|
|
# Default domain used.
|
|
|
|
# Can be overridden by setting the "traefik.domain" label on a container.
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: ""
|
|
|
|
#
|
|
|
|
# domain = "docker.localhost"
|
|
|
|
|
|
|
|
# Expose containers by default in traefik
|
|
|
|
#
|
|
|
|
# Optional
|
|
|
|
# Default: true
|
|
|
|
exposedByDefault = false
|
|
|
|
|
|
|
|
|
|
|
|
[acme]
|
|
|
|
email = "{{ ansible_nas_email }}"
|
|
|
|
storage = "acme.json"
|
|
|
|
entryPoint = "https"
|
|
|
|
acmeLogging = true
|
|
|
|
onDemand = false # create certificate when container is created
|
|
|
|
|
|
|
|
# [acme.dnsChallenge]
|
|
|
|
# provider = "cloudflare"
|
|
|
|
# delayBeforeCheck = 0
|
|
|
|
|
|
|
|
# [acme.httpChallenge]
|
|
|
|
# entryPoint = "http"
|
2019-04-11 22:03:11 +00:00
|
|
|
|
2018-11-25 11:07:09 +00:00
|
|
|
[acme.tlsChallenge]
|
|
|
|
|
|
|
|
[[acme.domains]]
|
2020-04-16 04:37:44 +00:00
|
|
|
main = "{{ ansible_nas_hostname }}.{{ ansible_nas_domain }}"
|
2018-11-28 23:11:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
# we request a certificate for everything, because why not.
|
2019-01-03 15:10:39 +00:00
|
|
|
sans = ["airsonic.{{ ansible_nas_domain }}",
|
2019-09-25 19:07:13 +00:00
|
|
|
"bazarr.{{ ansible_nas_domain }}",
|
2019-04-10 12:46:47 +00:00
|
|
|
"bitwarden.{{ ansible_nas_domain }}",
|
2019-08-31 21:10:51 +00:00
|
|
|
"calibre.{{ ansible_nas_domain }}",
|
2019-10-05 10:53:49 +00:00
|
|
|
"cloudcmd.{{ ansible_nas_domain }}",
|
2019-01-03 15:10:39 +00:00
|
|
|
"couchpotato.{{ ansible_nas_domain }}",
|
2018-11-28 23:11:34 +00:00
|
|
|
"duplicati.{{ ansible_nas_domain }}",
|
|
|
|
"emby.{{ ansible_nas_domain }}",
|
2019-06-02 18:52:13 +00:00
|
|
|
"firefly.{{ ansible_nas_domain }}",
|
2018-11-28 23:11:34 +00:00
|
|
|
"gitea.{{ ansible_nas_domain }}",
|
2020-02-04 15:31:10 +00:00
|
|
|
"gitlab.{{ ansible_nas_domain }}",
|
2018-11-28 23:11:34 +00:00
|
|
|
"glances.{{ ansible_nas_domain }}",
|
|
|
|
"grafana.{{ ansible_nas_domain }}",
|
|
|
|
"guacamole.{{ ansible_nas_domain }}",
|
|
|
|
"heimdall.{{ ansible_nas_domain }}",
|
2019-07-23 20:07:40 +00:00
|
|
|
"homeassistant.{{ ansible_nas_domain }}",
|
2019-04-11 22:03:11 +00:00
|
|
|
"jackett.{{ ansible_nas_domain }}",
|
2019-08-27 12:58:00 +00:00
|
|
|
"jellyfin.{{ ansible_nas_domain }}",
|
2019-06-24 13:22:26 +00:00
|
|
|
"joomla.{{ ansible_nas_domain }}",
|
2020-04-23 06:42:14 +00:00
|
|
|
"krusader.{{ ansible_nas_domain }}",
|
2019-10-16 17:58:37 +00:00
|
|
|
"lidarr.{{ ansible_nas_domain }}",
|
2020-05-02 23:00:06 +00:00
|
|
|
"mylar.{{ ansible_nas_domain }}",
|
2019-01-03 15:10:39 +00:00
|
|
|
"miniflux.{{ ansible_nas_domain }}",
|
|
|
|
"netdata.{{ ansible_nas_domain }}",
|
2018-11-28 23:11:34 +00:00
|
|
|
"nextcloud.{{ ansible_nas_domain }}",
|
2019-06-02 20:15:34 +00:00
|
|
|
"nzbget.{{ ansible_nas_domain }}",
|
2019-11-21 03:28:11 +00:00
|
|
|
"ombi.{{ ansible_nas_domain }}",
|
2019-08-13 12:43:26 +00:00
|
|
|
"openhab.{{ ansible_nas_domain }}",
|
2020-04-25 22:30:35 +00:00
|
|
|
"organizr.{{ ansible_nas_domain }}",
|
2018-11-28 23:11:34 +00:00
|
|
|
"plex.{{ ansible_nas_domain }}",
|
|
|
|
"portainer.{{ ansible_nas_domain }}",
|
2019-05-06 20:59:37 +00:00
|
|
|
"pyload.{{ ansible_nas_domain }}",
|
2020-05-09 22:04:21 +00:00
|
|
|
"pytivo.{{ ansible_nas_domain }}",
|
2018-11-28 23:11:34 +00:00
|
|
|
"radarr.{{ ansible_nas_domain }}",
|
2019-04-15 15:38:08 +00:00
|
|
|
"sickchill.{{ ansible_nas_domain }}",
|
2018-11-28 23:11:34 +00:00
|
|
|
"sonarr.{{ ansible_nas_domain }}",
|
|
|
|
"tautulli.{{ ansible_nas_domain }}",
|
2019-04-12 22:31:27 +00:00
|
|
|
"thelounge.{{ ansible_nas_domain }}",
|
2018-11-28 23:11:34 +00:00
|
|
|
"transmission.{{ ansible_nas_domain }}",
|
2019-04-11 22:03:11 +00:00
|
|
|
"transmission-openvpn.{{ ansible_nas_domain }}",
|
2019-11-19 18:13:15 +00:00
|
|
|
"ubooquity.{{ ansible_nas_domain }}",
|
2020-04-23 05:44:32 +00:00
|
|
|
"utorrent.{{ ansible_nas_domain }}",
|
2019-06-12 19:48:18 +00:00
|
|
|
"wallabag.{{ ansible_nas_domain }}",
|
2020-04-23 06:10:58 +00:00
|
|
|
"youtubedlmaterial.{{ ansible_nas_domain }}",
|
2019-04-15 15:38:08 +00:00
|
|
|
"znc.{{ ansible_nas_domain }}"]
|