From e84c2159ff3499010350e3c8f4645aa9424e0e90 Mon Sep 17 00:00:00 2001 From: sujalshrestha Date: Wed, 5 Feb 2025 19:37:19 +0545 Subject: [PATCH] add nginx prod and dev conf --- nginx-dev.conf | 20 ++++++++++++++++++++ nginx-prod.conf | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 nginx-dev.conf create mode 100644 nginx-prod.conf 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