src/lib/rules.js
// Export database as Nginx configuration file
Export database as Nginx configuration file
Export database as Nginx configuration file
toNginx(type) {
    return this.getExport(type).then(rules => {
      const nginxRules = rules.map(ruleToNginx).join('\n');
      return `# Blocked IPs
${nginxRules}`;
    });
  }
toNginx ( type ) { return this . getExport ( type ) . then ( rules => { const nginxRules = rules . map ( ruleToNginx ) . join ( '\n' ) ; return ` ${ nginxRules } ` ; } ) ; }
Export database as Nginx configuration file
Export database as Nginx configuration file