mirror of
https://github.com/itsnaveenk/bazar3.git
synced 2025-12-19 21:27:05 +00:00
""
This commit is contained in:
parent
56e564af63
commit
da2f203bb3
30
nginx.conf
30
nginx.conf
@ -1,30 +0,0 @@
|
||||
user nginx;
|
||||
worker_processes auto;
|
||||
|
||||
http {
|
||||
# ...existing code...
|
||||
|
||||
server {
|
||||
server_name kings.com;
|
||||
root /var/www/kings-frontend; # Path to your built frontend files
|
||||
index index.html;
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
# ...existing code...
|
||||
}
|
||||
|
||||
server {
|
||||
server_name backend.kings.com;
|
||||
location / {
|
||||
proxy_pass http://localhost:5500; # Forward to your Node.js backend
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header Host $host;
|
||||
# ...existing code...
|
||||
}
|
||||
}
|
||||
|
||||
# ...existing code...
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user