Merge pull request #395 from linuxserver/master-mime

Avoid duplicate mime definition
This commit is contained in:
Adam 2023-12-22 22:39:22 +00:00 committed by GitHub
commit 9895069283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,15 +59,6 @@ server {
# Remove X-Powered-By, which is an information leak
fastcgi_hide_header X-Powered-By;
# Add .mjs as a file extension for javascript
# Either include it in the default mime.types list
# or include you can include that list explicitly and add the file extension
# only for Nextcloud like below:
include mime.types;
types {
text/javascript js mjs;
}
# Specify how to handle directories -- specifying `/index.php$request_uri`
# here as the fallback means that Nginx always exhibits the desired behaviour
# when a client requests a path that corresponds to a directory that exists
@ -151,6 +142,15 @@ server {
location ~ \.wasm$ {
default_type application/wasm;
}
location ~ \.js$ {
default_type text/javascript;
}
location ~ \.mjs$ {
default_type text/javascript;
}
}
location ~ \.woff2?$ {