From 1d958fc0c6f36bf54106d3c9bef4b9817aee959b Mon Sep 17 00:00:00 2001 From: Ee Durbin Date: Mon, 11 Mar 2024 11:11:36 -0400 Subject: [PATCH] Redirect Code of Conduct documents to polices.python.org --- config/nginx.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/config/nginx.conf b/config/nginx.conf index 5ee6aaf6b..f5729b148 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -314,6 +314,22 @@ http { return 301 https://python.org/blogs/; } + location ^/psf/archive/codeofconduct/?$ { + return 302 https://policies.python.org/python.org/code-of-conduct/; + } + location ^/psf/codeofconduct/?$ { + return 302 https://policies.python.org/python.org/code-of-conduct/; + } + location ^/psf/conduct/?$ { + return 302 https://policies.python.org/python.org/code-of-conduct/; + } + location ^/psf/conduct/enforcement/?$ { + return 302 https://policies.python.org/python.org/code-of-conduct/Enforcement-Procedures/; + } + location ^/psf/conduct/reporting/?$ { + return 302 https://policies.python.org/python.org/code-of-conduct/Procedures-for-Reporting-Incidents/; + } + location /static/ { alias /code/static-root/; add_header Cache-Control "max-age=604800, public"; # 604800 is 7 days