wikisjs & redisinsight - update loop

This commit is contained in:
Ludovic Cartier 2024-05-07 12:02:51 +02:00
parent 37d7a0b123
commit 91c5bf5fe2
2 changed files with 2 additions and 3 deletions

View File

@ -19,7 +19,7 @@ services:
labels: labels:
traefik.enable: "true" traefik.enable: "true"
## IP ## IP
traefik.http.routers.redisinsight.rule: "Host(`{{ redisinsight_domain }}`){% if redisinsight_whitelist is defined %} && ClientIP({% for ip in redisinsight_whitelist %}`{{ ip }}`,{% endfor %}){% endif %}" traefik.http.routers.redisinsight.rule: "Host(`{{ redisinsight_domain }}`){% if redisinsight_whitelist is defined %} && ({% for ip in redisinsight_whitelist %}{% if not loop.last %}ClientIP(`{{ ip }}`) || {% else %}ClientIP(`{{ ip }}`){% endif %}{% endfor %}){% endif %}"
traefik.http.routers.redisinsight.entrypoints: "websecure" traefik.http.routers.redisinsight.entrypoints: "websecure"
traefik.http.routers.redisinsight.tls.certresolver: "letsencrypt" traefik.http.routers.redisinsight.tls.certresolver: "letsencrypt"
traefik.http.services.redisinsight.loadbalancer.server.port: "5000" traefik.http.services.redisinsight.loadbalancer.server.port: "5000"

View File

@ -57,8 +57,7 @@ services:
labels: labels:
traefik.enable: true traefik.enable: true
traefik.docker.network: traefik traefik.docker.network: traefik
#traefik.http.routers.wikijs.rule: "Host(`{{ wikijs_domain }}`){% if wikijs_whitelist is defined %} && ClientIP({% for ip in wikijs_whitelist %}`{{ ip }}`,{% endfor %}){% endif %}" traefik.http.routers.wikijs.rule: "Host(`{{ wikijs_domain }}`){% if wikijs_whitelist is defined %} && ({% for ip in wikijs_whitelist %}{% if not loop.last %}ClientIP(`{{ ip }}`) || {% else %}ClientIP(`{{ ip }}`){% endif %}{% endfor %}){% endif %}"
traefik.http.routers.wikijs.rule: "Host(`{{ wikijs_domain }}`){% if wikijs_whitelist is defined %} && ({% for ip in wikijs_whitelist %}{% if not loop.last %}ClientIP(`{{ ip }}`) ||{%else}ClientIP(`{{ ip }}`){% endif %}{% endfor %}){% endif %}"
traefik.http.routers.wikijs.tls: true traefik.http.routers.wikijs.tls: true
traefik.http.routers.wikijs.tls.certresolver: letsencrypt traefik.http.routers.wikijs.tls.certresolver: letsencrypt
traefik.http.routers.wikijs.entrypoints: "websecure" traefik.http.routers.wikijs.entrypoints: "websecure"