New option to use and configure Prosody mod_firewall WIP (#97):
* new setting * new configuration screen for Peertube admins * include the mod_firewall module * load mod_firewall if enabled * sys admin can disable the firewall config editing by creating a special file on the disk * user documentation
This commit is contained in:
@ -553,6 +553,15 @@ class ProsodyConfigContent {
|
||||
this.muc.set('poll_string_vote_instructions', loc('poll_vote_instructions_xmpp'))
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable mod_firewall.
|
||||
* @param files file paths to load (ordered)
|
||||
*/
|
||||
useModFirewall (files: string[]): void {
|
||||
this.global.add('modules_enabled', 'firewall')
|
||||
this.global.set('firewall_scripts', files)
|
||||
}
|
||||
|
||||
addMucAdmins (jids: string[]): void {
|
||||
for (const jid of jids) {
|
||||
this.muc.add('admins', jid)
|
||||
|
@ -22,6 +22,7 @@ interface ProsodyFilePaths {
|
||||
execCtlArgs: string[]
|
||||
appImageToExtract?: string
|
||||
appImageExtractPath: string
|
||||
modFirewallFiles: string
|
||||
}
|
||||
|
||||
export {
|
||||
|
Reference in New Issue
Block a user