Skip to content

Commit

Permalink
Foundry: traefik3
Browse files Browse the repository at this point in the history
  • Loading branch information
owine committed Sep 16, 2023
1 parent fa75b7a commit cfbb5b3
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions roles/foundry/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ foundry_paths_folders_list:
foundry_web_subdomain: "{{ foundry_name }}"
foundry_web_domain: "{{ user.domain }}"
foundry_web_port: "30000"
foundry_web_url: "{{ 'https://' + foundry_web_subdomain + '.' + foundry_web_domain }}"

foundry_web_url: "{{ 'https://' + (foundry_web_subdomain + '.' + foundry_web_domain
if (foundry_web_subdomain | length > 0)
else foundry_web_domain) }}"

Check failure on line 37 in roles/foundry/defaults/main.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[trailing-spaces]

Trailing spaces
################################
# DNS
################################
Expand All @@ -46,16 +48,8 @@ foundry_dns_proxy: "{{ dns.proxied }}"
################################

foundry_traefik_sso_middleware: "{{ traefik_default_sso_middleware }}"
foundry_traefik_middleware_default: "{{ traefik_default_middleware + ','
+ lookup('vars', foundry_name + '_traefik_sso_middleware', default=foundry_traefik_sso_middleware)
if (lookup('vars', foundry_name + '_traefik_sso_middleware', default=foundry_traefik_sso_middleware) | length > 0)
else traefik_default_middleware }}"
foundry_traefik_middleware_default: "{{ traefik_default_middleware }}"
foundry_traefik_middleware_custom: ""
foundry_traefik_middleware: "{{ foundry_traefik_middleware_default + ','
+ foundry_traefik_middleware_custom
if (not foundry_traefik_middleware_custom.startswith(',') and foundry_traefik_middleware_custom | length > 0)
else foundry_traefik_middleware_default
+ foundry_traefik_middleware_custom }}"
foundry_traefik_certresolver: "{{ traefik_default_certresolver }}"
foundry_traefik_enabled: true
foundry_traefik_api_enabled: false
Expand Down

0 comments on commit cfbb5b3

Please sign in to comment.