Skip to content

Commit

Permalink
add nginx prod and dev conf
Browse files Browse the repository at this point in the history
  • Loading branch information
SuzalShrestha committed Feb 5, 2025
1 parent bda6704 commit e84c215
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions nginx-dev.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
events {
# Event directives...
}

http {
server {
listen 80;
server_name staging.protectedtxt.sujalshrestha.tech;

location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
}
~
20 changes: 20 additions & 0 deletions nginx-prod.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
events {
# Event directives...
}

http {
server {
listen 80;
server_name protectedtxt.sujalshrestha.tech;

location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
}
~

0 comments on commit e84c215

Please sign in to comment.