Skip to content

Commit

Permalink
traefik-expose: entrypoints control
Browse files Browse the repository at this point in the history
stelcheck committed May 8, 2019
1 parent 288df01 commit 1d5c177
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions buildconfig.yml
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ binary:
name: "dawn"

# The current version of the binary
version: "0.15.2"
version: "0.15.3"

# (Optional) URLs to call when attempting auto-update.
# Defaults:
@@ -78,7 +78,7 @@ image:
name: dawn

# Current image version
version: "0.15.2"
version: "0.15.3"

# Root folder where most files will be uploaded or mounted
root_folder: /dawn
6 changes: 4 additions & 2 deletions docker-image/ansible/roles/traefik-expose/README.md
Original file line number Diff line number Diff line change
@@ -9,11 +9,13 @@ expose services that might not be running in swarm (ie. vault, ldap, etc...).
dependencies:
- role: traefik-expose
# required
service_name: grafana
service_name: grafana
# optional, defaults to http,https - useful if you need to define additional entrypoints
service_entrypoints: https
# required
service_port: 3000
# optional, defaults to {{ private_ipv4 }}
service_ip: "{{ group_ipv4.monitor[0] }}"
# optional, defaults to http
service_scheme: https
```
```
2 changes: 2 additions & 0 deletions docker-image/ansible/roles/traefik-expose/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -12,6 +12,8 @@
value: "1"
- key: "traefik/frontends/{{ service_name }}/backend"
value: "{{ service_name }}"
- key: "traefik/frontends/{{ service_name }}/entrypoints"
value: "{{ service_entrypoints | default('http,https') }}"
- key: "traefik/frontends/{{ service_name }}/routes/{{ service_name }}/rule"
value: "Host:{{ service_name }}.{{ local_domain_name }}"
- key: "traefik/frontends/{{ service_name }}/whitelist/sourcerange"

0 comments on commit 1d5c177

Please sign in to comment.