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:
@ -14,6 +14,7 @@ import { initFederationServerInfosApiRouter } from './api/federation-server-info
|
||||
import { initConfigurationApiRouter } from './api/configuration'
|
||||
import { initPromoteApiRouter } from './api/promote'
|
||||
import { initEmojisRouter } from './emojis'
|
||||
import { initAdminFirewallApiRouter } from './api/admin/firewall'
|
||||
|
||||
/**
|
||||
* Initiate API routes
|
||||
@ -45,6 +46,8 @@ async function initApiRouter (options: RegisterServerOptions): Promise<Router> {
|
||||
await initPromoteApiRouter(options, router)
|
||||
await initEmojisRouter(options, router)
|
||||
|
||||
await initAdminFirewallApiRouter(options, router)
|
||||
|
||||
if (isDebugMode(options)) {
|
||||
// Only add this route if the debug mode is enabled at time of the server launch.
|
||||
// Note: the isDebugMode will be tested again when the API is called.
|
||||
|
Reference in New Issue
Block a user