Skip to content

Commit

Permalink
Add .mjs and .wasm MIME types to nginx configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Sep 10, 2024
1 parent 83a54ea commit 2fa7c0f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions imageroot/actions/create-module/20expandconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ events {
http {
include /etc/nginx/mime.types;
# Set .mjs and wasm that is missing in the mime.types
types {
text/javascript mjs;
application/wasm wasm;
}
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
Expand Down Expand Up @@ -107,13 +112,6 @@ http {
# Remove X-Powered-By, which is an information leak
fastcgi_hide_header X-Powered-By;
# Set .mjs and wasm that is missing in the mime.types
include mime.types;
types {
text/javascript mjs;
application/wasm wasm;
}
# Path to the root of your installation
root /var/www/html;
Expand Down

0 comments on commit 2fa7c0f

Please sign in to comment.