Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P7A-174: proxy node domain to Next.js #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion nginx/sites-available/ez
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ server {
listen 127.0.0.1:443 ssl;
listen 127.0.0.1:80;

server_name .ez;
server_name ~.*\.ez;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly does this do?


include conf.d/host_resolver;

Expand Down
18 changes: 18 additions & 0 deletions nginx/sites-available/node
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
server {
listen 127.0.0.1:80;
listen 127.0.0.1:443 ssl;

server_name ~.*node\..*;

location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_cache_bypass $http_upgrade;
}
}
2 changes: 1 addition & 1 deletion nginx/sites-available/sf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ server {
listen 127.0.0.1:443 ssl;
listen 127.0.0.1:80;

server_name .sf;
server_name ~.*\.sf;

include conf.d/host_resolver;

Expand Down
2 changes: 1 addition & 1 deletion nginx/sites-available/wp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ server {
listen 127.0.0.1:443 ssl;
listen 127.0.0.1:80;

server_name .wp;
server_name ~.*\.wp;

set $_install_dir _invalid_host_format;
set $_base_path /var/www;
Expand Down