Skip to content

Commit

Permalink
chore(nginx): updated nodejs.org configuration (#3139)
Browse files Browse the repository at this point in the history
This PR introduces several Nginx changes that simplify the current configuration and fix current bugs.

Configuration changes
- Merge HTTP and HTTPS server blocks for redirects
- Removes non-needed configuration from the default nodejs.org:80 server block
- Removes the nodejs.org:80 redirect to nodejs.org:443 server block in favor of a return 301 rule
- Removes legacy rules such as (/blog redirecting to blog.nodejs.org), which could cause a "too many redirects" error
- Fixes the blog.nodejs.org:80 configuration which caused "too many redirects" and was broken
- Removed broken server rules such as the newsletter.nodejs.org
- Fixed broken foundation.nodejs.org location rules to the respective links of openjsf.org:443
- Reorganised the file (first both 80/443 ports for nodejs.org then all the extras)
- Added @todo's for the upcoming Next.js rewrite of nodejs.org
  • Loading branch information
ovflowd committed Mar 15, 2023
1 parent faf52ba commit 92c5c08
Showing 1 changed file with 149 additions and 233 deletions.

0 comments on commit 92c5c08

Please sign in to comment.