๐Ÿ‡จ๐Ÿ‡ณ ืฉื™ื ื•ื™ ื”ื’ื•ื“ืœ ื”ืžืงืกื™ืžืœื™ ืœื”ืขืœืื•ืช/ืงื‘ืฆื™ื ืžืฆื•ืจืคื™ื | Discourse ืฉื™ื ื•ื™ ื’ื•ื“ืœ ื”ื”ืขืœืื”

Discourse attachment upload size requires modifying the configuration file and restarting.

The official post is on: Change the maximum attachment/upload size - sysadmin - Discourse Meta.


The default upload size is 10 MB.

You need to add the parameter above to the Discourse configuration file and recompile.

After making the changes, navigate to the directory: /var/discourse and run the command:

./launcher rebuild app

to recompile.

Admin Control Panel Modification

Modifying only the configuration file above is not enough; you also need to adjust it within the admin control panel.


After completing the modifications, your Discourse will support larger attachment uploads.

If you have any other questions or need assistance, please visit our website (Chinese): iSharkFly - ้ฃž้ฒจ

Due to domain name adjustment, the above navigation link has been changed to: Discourse ไฟฎๆ”นไธŠไผ ้™„ไปถ็š„ๅคงๅฐ - Discourse - iSharkFly.

ืœื™ื™ืง 1

It used to be all English, now thereโ€™s finally Chinese, great, I support it :kissing:

We have to rebuild again, why does it take a rebuild every time we change something here, so troublesome

This is not entirely the case.

As long as the configuration is not modified, reconstruction is usually not necessary.

Itโ€™s just an Nginx configuration; I directly modified it inside the Docker container. In the future, if I need to change something else, Iโ€™ll rebuild it. For now, Iโ€™ll use it as is. Since itโ€™s an internal network environment, rebuilding requires connecting to the external internet to pull updates, which is quite troublesome.