Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove wasm MIME type from nginx-subdir.conf.sample #13683

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kinafu wants to merge 1 commit into nextcloud:master
base: master
Choose a base branch
Loading
from kinafu:patch-1

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

@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.

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
edited
Loading

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

Reviewers

@joshtrichards joshtrichards joshtrichards left review comments

At least 1 approving review is required to merge this pull request.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /