29 lines
632 B
Nginx Configuration File
29 lines
632 B
Nginx Configuration File
server {
|
|
resolver 127.0.0.11 valid=30s ipv6=off;
|
|
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
set $backend_upstream http://backend:3001;
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location /cv {
|
|
alias /usr/share/nginx/html;
|
|
try_files $uri $uri/ /cv/index.html;
|
|
}
|
|
|
|
location /api {
|
|
proxy_pass $backend_upstream;
|
|
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;
|
|
}
|
|
}
|