Add static assets to nginx
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
proxy_pass ${SCOROMETER_URL};
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $http_connection;
|
||||
proxy_http_version 1.1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user