src/lib/rules.js
// Export database as Apache configuration file
Export database as Apache configuration file
Export database as Apache configuration file
toApache(type) {
    return this.getExport(type).then(rules => {
      const apacheRules = rules.map(ruleToApache).join('\n');
      return `<RequireAll>
  Require all granted
  # Blocked IPs
  ${apacheRules}
  </RequireAll>`;
    });
  }
toApache ( type ) { return this . getExport ( type ) . then ( rules => { const apacheRules = rules . map ( ruleToApache ) . join ( '\n' ) ; return ` ${ apacheRules } ` ; } ) ; }
Export database as Apache configuration file
Export database as Apache configuration file