Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

traefik: user customization #4

Closed
wants to merge 1 commit into from
Closed

traefik: user customization #4

wants to merge 1 commit into from

Conversation

khartahk
Copy link
Owner

@khartahk khartahk commented Nov 11, 2021

  • Updates traefik v2.4->v2.5 (I've done an in-place upgrade and it worked with no issues)
  • Adds ability to even further customize traefik2 configuration but keeps all the current settings as default
    • parametrize container image using traefik_image
    • parametrize templated files with traefik_template_files{,_custom} template custom files
    • parametrize container volumes with traefik_docker_volumes{,_custom} mount custom volumes to container
    • parametrize entryPoint.web port traefik_port_http
    • use ansible_nas_domain_root as added in netdata: allow customizing netdata.conf, allow custom host domain davestephens/ansible-nas#495 to allow more customization for domain names
    • parametrize domains used to generate certificates using traefik_domain_san{,_custom}
  • Optionaly add certificatesResolvers.letsencryptTls that uses TLS to authenticate for domain certificates, usefull if you have some domains that aren't using default ansible_nas_domain or *.ansible_nas_domain domain

Example for templating:
I'm using this to seed the account-file.json to multiple server that I use as a failover. acme-dns uses it to store the "passwords" for domain certs it tries to / issues.

@khartahk khartahk force-pushed the role-traefik branch 5 times, most recently from aa92038 to 8dfe440 Compare November 11, 2021 16:35
@khartahk khartahk changed the base branch from main to master November 11, 2021 16:57
@khartahk khartahk force-pushed the role-traefik branch 2 times, most recently from 185f88e to caecaec Compare November 11, 2021 17:09
- Updates traefik v2.4->v2.5 (I've done an in-place upgrade and it worked with no issues)
- Adds ability to even further customize traefik2 configuration but keeps all the current settings as default
    - parametrize container image using `traefik_image`
    - parametrize templated files with `traefik_template_files{,_custom}` template custom files
    - parametrize container volumes with `traefik_docker_volumes{,_custom}` mount custom volumes to container
    - parametrize entryPoint.web port `traefik_port_http`
    - use `ansible_nas_domain_root` as added in davestephens#495 to allow more customization for domain names
    - parametrize domains used to generate certificates using `traefik_domain_san{,_custom}`
- Optionaly add `certificatesResolvers.letsencryptTls` that uses TLS to authenticate for domain certificates, usefull if you have some domains that aren't using default `ansible_nas_domain` or `*.ansible_nas_domain` domain

Example for templating:
I'm using this to seed the account-file.json to multiple server that I use as a failover. `acme-dns` uses it to store the "passwords" for domain certs it tries to / issues.
@khartahk khartahk deleted the branch master September 23, 2023 13:48
@khartahk khartahk closed this Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant