Skip to content

Commit

Permalink
nginx: add "application/javascript" MIME type for mjs files
Browse files Browse the repository at this point in the history
  • Loading branch information
egabancho committed Dec 12, 2024
1 parent 473243a commit 7f4d229
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions charts/invenio/templates/nginx-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ data:

# General settings
charset utf-8;
include /etc/nginx/mime.types;
default_type application/octet-stream;
types {
# The default MIME types file doesn't assign "application/javascript"
# to "*.mjs" files (ECMAScript modules)
application/javascript js mjs;
}
keepalive_timeout 65s;
include /etc/nginx/mime.types;
sendfile on;
server_tokens off;
tcp_nodelay on;
Expand All @@ -65,15 +70,35 @@ data:
gzip_min_length 100;
gzip_proxied any;
gzip_types
application/atom+xml
application/javascript
application/json
application/ld+json
application/manifest+json
application/octet-stream
application/rss+xml
application/vnd.geo+json
application/vnd.ms-fontobject
application/x-font-ttf
application/x-javascript
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
application/xml+rss
font/opentype
image/bmp
image/svg+xml
image/x-icon
text/cache-manifest
text/css
text/html
text/javascript
text/plain
text/vcard
text/vnd.rim.location.xloc
text/vtt
text/x-component
text/x-cross-domain-policy
text/xml
application/json
application/xml
application/xml+rss
application/x-javascript;
gzip_vary on;

# SSL configuration removed in the deployed env
Expand Down

0 comments on commit 7f4d229

Please sign in to comment.