Skip to content
Merged
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
16 changes: 16 additions & 0 deletions config/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down