@PitaJ said in Can’t sign up into my nodebb site using proxy:
@scottalanmiller it sounded like he was referring to a 3rd party proxy.
Oh, I see. A very specific proxy for which the site is not configured.
I'm trying to set up a staging environment, but a lot of my setup depends on my settings. I don't want to have to duplicate them every time I change something. Is there a way to sync all ACP, perhaps in a file?
Edit: I also want to sync the installed plugins, but I can already do that with package.json.
I believe you could do this with a quick database script. All of the ACP settings AFAIK are held in the config
object.
Hmm, I guess that would be the way then. Are the ones in the config object also plugin options, or only general ones?
Only options in core are stored there. Plugin options are left up to the plugins, though most would be in settings:[plugin name]
.
Alright, thanks.
@PitaJ Ahh... Yeah this was looking fine, but I've encountered a problem with exporting the local login setting. Earlier it was in the config object, but now that has been obsoleted and it's a "group privilege". I find the database structure of groups and their privileges a big confusing. Do you think you could help me figure out how to export that general setting in the current situation?
@Ludvig-Janiuk I'm not well acquainted with that but I think @baris should be able to help
You should be able to use privileges.global.list
to list all global privileges and write them to a file. Then load them back and use privileges.global.give
to assign them back.
Thank you, I didn't try that approach, instead, I realized I can change the settings directly from the code. So I'm baking in my settings into my plugin and setting them in the init.