Skip to content

Commit

Permalink
traefik: revert log change since logrotate handles access
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Dec 11, 2023
1 parent 5dff9cc commit b787229
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 0 additions & 5 deletions roles/traefik/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,6 @@ traefik_docker_commands_default:
- "--log=true"
- "--log.level={{ traefik_log_level }}"
- "--log.filepath=/etc/traefik/traefik.log"
- "--log.maxsize={{ traefik_log_max_size }}"
- "--log.maxbackups={{ traefik_log_max_backups }}"
- "--log.maxage={{ traefik_log_max_age }}"
- "--log.compress={{ traefik_log_compress }}"
- "--log.nocolor=true"
- "--accesslog={{ traefik_access_log }}"
- "--accesslog.fields.names.StartUTC=drop"
- "--accesslog.fields.headers.names.User-Agent=keep"
Expand Down
7 changes: 7 additions & 0 deletions roles/traefik/templates/dynamic.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ http:
serversTransports:
skipverify:
insecureSkipVerify: true

log:
noColor: true
maxSize: {{ traefik_log_max_size }}
maxBackups: "{{ traefik_log_max_backups }}"
maxAge: "{{ traefik_log_max_age }}"
compress: "{{ traefik_log_compress }}"

0 comments on commit b787229

Please sign in to comment.