Skip to content

Commit

Permalink
traefik: expand the dropsecurityheaders middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Oct 4, 2023
1 parent 671b519 commit f9ca566
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion roles/remote/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
register: saltbox_managed_containers
ignore_errors: true

- name: "Set 'containers_list' variable"
- name: "Set 'containers_list' and 'remote_stopped_docker' variables"
ansible.builtin.set_fact:
containers_list: "{{ saltbox_managed_containers.stdout }}"
remote_stopped_docker: true
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 @@ -29,11 +29,18 @@ http:
X-Forwarded-Proto: https
dropsecurityheaders:
headers:
accessControlAllowCredentials: "true"
accessControlAllowHeaders: "*"
accessControlAllowMethods: "*"
accessControlAllowOriginList: "*"
accessControlExposeHeaders: "*"
accessControlMaxAge: "100000"
customresponseheaders:
content-security-policy: ""
permissions-policy: ""
referrer-policy: ""
x-frame-options: ""
cross-origin-opener-policy: ""
hsts:
headers:
stsSeconds: 63072000
Expand Down

0 comments on commit f9ca566

Please sign in to comment.