31 lines
584 B
Plaintext
31 lines
584 B
Plaintext
server {
|
|
listen ${PORT};
|
|
root /usr/share/nginx/html;
|
|
|
|
index index.html;
|
|
|
|
location /assets {
|
|
alias /assets;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass ${FRONT_URL}/;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass ${API_URL}/;
|
|
}
|
|
|
|
location /ws {
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-Scheme $scheme;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
set $upstream ${SCOROMETER_URL};
|
|
proxy_pass $upstream;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $http_connection;
|
|
proxy_http_version 1.1;
|
|
}
|
|
}
|