nginx: add /assets location to fit Vite build
This commit is contained in:
@@ -128,6 +128,15 @@ server {
|
||||
}
|
||||
}
|
||||
|
||||
location /assets {
|
||||
root /home/admin/inventaire/client/public;
|
||||
include /etc/nginx/snippets/security_headers.conf;
|
||||
gzip_static on;
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
add_header Access-Control-Allow-Methods "GET,HEAD,OPTIONS";
|
||||
add_header Access-Control-Allow-Headers "content-type";
|
||||
}
|
||||
|
||||
# Pass the request to the node.js server
|
||||
# with some correct headers for proxy-awareness
|
||||
location /api {
|
||||
|
||||
Reference in New Issue
Block a user