nscr
Posts
-
-
You can take a look at google's kaniko which may exactly fulfill your requirements.
GitHub - GoogleContainerTools/kaniko: Build Container Images In Kubernetes
Build Container Images In Kubernetes. Contribute to GoogleContainerTools/kaniko development by creating an account on GitHub.
GitHub (github.com)
-
By default, admin management panel can be used to upload favicon/site-logo and etc images which are not hooked in the nodebb original source code.
If that's the situation you have to override the default upload behavior, you may have to change the source code. I'll put a simple example below:
- source code to change:
src/controllers/admin/uploads.js
- for example, override the default uploadFavicon behavior with the above plugin:
uploadsController.uploadCategoryPicture = function() { await upload('favicon', req, res, next); }
- source code to change:
-
I'm gonna answer my own question here. The solution is simple, use other cloud-based upload plugins, for example:
- amazon s3 service: nodebb-plugin-s3-upload
- aliyun oss: nodebb-plugin-ali-oss
NOTE: both of these plugins are somekind of outdated, you may have to modify the code to make it work.
for aliyun oss upload, you can use my modified version:
nodebb-plugin-aliyun-upload
nodebb aliyun oss upload plugin. Latest version: 1.0.3, last published: 3 months ago. Start using nodebb-plugin-aliyun-upload in your project by running `npm i nodebb-plugin-aliyun-upload`. There are no other projects in the npm registry using nodebb-plugin-aliyun-upload.
npm (www.npmjs.com)
-
./public/uploads/
should be persist, it's used for the uploaded files.By the way, how do you handle the persist problem in docker?
-
@PitaJ Thanks.
-
I'm deploying nodebb with docker, but the files uploaded are store in relative path to nodebb application, which is in the docker environment. So, as all of us know, docker environment would be destroyed and the uploaded files, specifically the uploaded favicons and etc admin settings related with assets uploaded would be in a mess, resulting in unreachable image sources or something like that. So, to put it all together, my question is how to deploy with docker and persist all the upload files? Is there any official documentations or guides available? Very much appreciated for your suggestions and actionalble guide. Thanks in advance.
-
I've customized nodebb widgets settings throught admin pannel, but after choosing another theme, all settings were lost/reset.
How to avoid this, or is there any means to persist my widgets settings?
-
By default, it's no possible to use mysql directly. But if you really want it, some efforts could be take to migrate the db from existing dbs to mysql database.
So, in short, it's possible to use mysql only if you can successfuly migrate all schemas and existing database operations in the code from mongodb/redis/postgresql(any of these) into mysql.
-
It looks like the discussion content in this topics has become outdated, so should I refer to the docs site directly instead?
I want to customize the default home page and post detail page, which involves layout and style customization, so, am I correct to develop a new theme for this?
Can't start NodeBB
How to define docker-compose to run nodebb in docker with non root user?
how to persist uploaded files with docker deployment?
how to persist uploaded files with docker deployment?
What should persist for docker installs?
widgets settings lost/reset after choosing another theme
how to persist uploaded files with docker deployment?
widgets settings lost/reset after choosing another theme
Using NodeBB with MySQL
Quickstart your NodeBB theme development