Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions files/galaxy/config/security.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Contact: mailto:galaxy@informatik.uni-freiburg.de
Expires: 2030-06-19T13:03:00.000Z
Preferred-Languages: en
Canonical: https://usegalaxy.eu/.well-known/security.txt
9 changes: 9 additions & 0 deletions sn09.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@
ansible.builtin.copy:
content: '{{ firewall_htcondor_shared_port_service }}'
dest: /etc/firewalld/services/htcondor-shared-port.xml

- name: Deploy security.txt
ansible.builtin.copy:
src: files/galaxy/security.txt
dest: /etc/nginx/security.txt
owner: root
group: root
mode: '0644'

post_tasks:
- name: Write Galaxy __galaxy_client_build_version and __galaxy_current_commit_id
delegate_to: 127.0.0.1
Expand Down
6 changes: 6 additions & 0 deletions templates/nginx/galaxy-main.j2
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ server {
proxy_pass http://127.0.0.1:{{ gie_proxy_port }};
}

location = /.well-known/security.txt {
alias /etc/nginx/security.txt;
default_type text/plain;
add_header Cache-Control "no-store";
}

location /.well-known/ {
proxy_pass http://127.0.0.1:8118;
proxy_set_header Host $host;
Expand Down
Loading