Nginx Config
events {
worker_connections 1024;
}
http {
resolver 8.8.8.8 8.8.4.4;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
include /etc/nginx/mime.types;
index index.html index.htm;
listen 80;
server_name localhost;
location /__bhuma/backend {
proxy_http_version 1.1;
rewrite ^/__bhuma/backend/(.*)$ /$1 break;
proxy_pass http://end-product-backend:8000;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Upgrade $http_upgrade;
}
location ~ ^/\. {
return 404;
}
location / {
try_files $uri $uri/ /index.html;
}
root /usr/share/nginx/html;
}
}
worker_processes 1;
Updated about 1 year ago