Skip to content

Conversation

kinafu
Copy link

@kinafu kinafu commented Sep 18, 2025

On my nginx/1.29.1 the wasm MIME-type is included in /etc/nginx/mime.types

☑️ Resolves

the error

web-1    | 2025/09/18 19:32:07 [warn] 9#9: duplicate extension "wasm", content type: "application/wasm", previous content type: "application/wasm" in /etc/nginx/nginx.conf:16
web-1    | nginx: [warn] duplicate extension "wasm", content type: "application/wasm", previous content type: "application/wasm" in /etc/nginx/nginx.conf:16

On my nginx/1.29.1 the wasm MIME-type is included in /etc/nginx/mime.types

Signed-off-by: kinafu <20564946+kinafu@users.noreply.github.com>
Copy link
Member

@joshtrichards joshtrichards left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the nudge. It doesn't hurt anything since dups are just a warning, but I agree it should be tidied up.

# only for Nextcloud like below:
include mime.types;
types {
text/javascript mjs;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
text/javascript mjs;
text/javascript mjs;
# uncomment below for Nginx <= 1.21.0
#application/wasm wasm;

Copy link
Member

@joshtrichards joshtrichards Sep 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we have to support a wide variation of Nginx versions (including EoL ones that are still supported within non-EoS distributions), albeit less so as time passes.

Refs:

nginx/nginx@130a3ec

https://sources.debian.org/src/nginx/

Copy link
Contributor

github-actions bot commented Oct 3, 2025

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants