chore: nginx config

This commit is contained in:
karishmas6
2024-10-30 02:04:53 +05:30
parent 1a55693a95
commit 728e370221

17
nginx.conf Normal file
View File

@@ -0,0 +1,17 @@
server {
listen 80;
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
location /api {
proxy_pass http://localhost:8080;
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;
}
}