diff --git a/nginx/templates/default.conf.template b/nginx/templates/default.conf.template index 2b2cb8b..39f3992 100755 --- a/nginx/templates/default.conf.template +++ b/nginx/templates/default.conf.template @@ -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 {