Skip to content

Commit 1d958fc

Browse files
committed
Redirect Code of Conduct documents to polices.python.org
1 parent d94b133 commit 1d958fc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

config/nginx.conf

+16
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,22 @@ http {
314314
return 301 https://python.org/blogs/;
315315
}
316316

317+
location ^/psf/archive/codeofconduct/?$ {
318+
return 302 https://policies.python.org/python.org/code-of-conduct/;
319+
}
320+
location ^/psf/codeofconduct/?$ {
321+
return 302 https://policies.python.org/python.org/code-of-conduct/;
322+
}
323+
location ^/psf/conduct/?$ {
324+
return 302 https://policies.python.org/python.org/code-of-conduct/;
325+
}
326+
location ^/psf/conduct/enforcement/?$ {
327+
return 302 https://policies.python.org/python.org/code-of-conduct/Enforcement-Procedures/;
328+
}
329+
location ^/psf/conduct/reporting/?$ {
330+
return 302 https://policies.python.org/python.org/code-of-conduct/Procedures-for-Reporting-Incidents/;
331+
}
332+
317333
location /static/ {
318334
alias /code/static-root/;
319335
add_header Cache-Control "max-age=604800, public"; # 604800 is 7 days

0 commit comments

Comments
 (0)