feat(ui): add cv application frontend and configuration
This commit is contained in:
28
nginx.conf
Normal file
28
nginx.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user