Add static assets to nginx

This commit is contained in:
2023-09-18 15:03:44 +02:00
committed by Clément Le Bihan
parent 49a735631a
commit 94658d4379
9 changed files with 73 additions and 10 deletions
+29
View File
@@ -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;
}
}