From 0437d9e77b74c58978ebd6766482684d655125ef Mon Sep 17 00:00:00 2001 From: Paul Moeller Date: Tue, 3 Dec 2024 18:43:39 +0000 Subject: [PATCH 1/2] fix #528 add security.txt to nginx config --- rsconf/package_data/sirepo/tornado_nginx.conf.jinja | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rsconf/package_data/sirepo/tornado_nginx.conf.jinja b/rsconf/package_data/sirepo/tornado_nginx.conf.jinja index e9b54e56..4c7ef65a 100644 --- a/rsconf/package_data/sirepo/tornado_nginx.conf.jinja +++ b/rsconf/package_data/sirepo/tornado_nginx.conf.jinja @@ -44,6 +44,9 @@ server { location = /robots.txt { rewrite (.*) /static/robots.txt; } + location = /security.txt { + rewrite (.*) /static/security.txt; + } {% if sirepo.wordpress_host %} {# legacy redirects #} location = /en/xray-beamlines.html { From ba0b94ca95219c16d509ade3a6824b19ccddf1ed Mon Sep 17 00:00:00 2001 From: Paul Moeller Date: Tue, 3 Dec 2024 18:52:31 +0000 Subject: [PATCH 2/2] for #528 fix test --- .../v4.radia.run/etc/nginx/conf.d/sirepo.v4.radia.run.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/pkcli/build1_data/2.out/srv/host/v4.radia.run/etc/nginx/conf.d/sirepo.v4.radia.run.conf b/tests/pkcli/build1_data/2.out/srv/host/v4.radia.run/etc/nginx/conf.d/sirepo.v4.radia.run.conf index ed8adc68..4c9878ea 100644 --- a/tests/pkcli/build1_data/2.out/srv/host/v4.radia.run/etc/nginx/conf.d/sirepo.v4.radia.run.conf +++ b/tests/pkcli/build1_data/2.out/srv/host/v4.radia.run/etc/nginx/conf.d/sirepo.v4.radia.run.conf @@ -51,4 +51,7 @@ server { location = /robots.txt { rewrite (.*) /static/robots.txt; } + location = /security.txt { + rewrite (.*) /static/security.txt; + } }