diff --git a/nginx-dev.conf b/nginx-dev.conf new file mode 100644 index 0000000..6d19bf2 --- /dev/null +++ b/nginx-dev.conf @@ -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; + } + } +} +~ \ No newline at end of file diff --git a/nginx-prod.conf b/nginx-prod.conf new file mode 100644 index 0000000..2ed6a97 --- /dev/null +++ b/nginx-prod.conf @@ -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; + } + } +} +~ \ No newline at end of file