diff --git a/imageroot/actions/create-module/20expandconfig b/imageroot/actions/create-module/20expandconfig index 475d90f..3160904 100755 --- a/imageroot/actions/create-module/20expandconfig +++ b/imageroot/actions/create-module/20expandconfig @@ -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" ' @@ -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;