Files
csf-web/next.config.mjs
ale 8a4fde51c7 feat: Complete CSF web interface with all features
- Fixed TypeScript errors and build issues
- Added comprehensive README.md with documentation
- Created .env.example with all configuration options
- Improved .gitignore with CSF-specific entries
- Added VS Code configuration for development
- Fixed next.config.mjs configuration
- Corrected API route type issues
- Added CHANGELOG.md with version history
- All components now compile without errors
- Ready for production deployment

Features included:
- Modern web interface for CSF firewall management
- Real-time monitoring with WebSockets
- JWT authentication system
- Complete API for CSF control
- Responsive UI with Tailwind CSS
- TypeScript support throughout
- Docker-ready configuration

Signed-off-by: ale <ale@manalejandro.com>
2025-09-20 18:48:53 +02:00

48 líneas
940 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
// Configuración para Docker
output: 'standalone',
// Configuración de imágenes
images: {
unoptimized: true
},
// Variables de entorno públicas
env: {
CUSTOM_KEY: process.env.CUSTOM_KEY,
},
// Configuración de headers de seguridad
async headers() {
return [
{
source: '/(.*)',
headers: [
{
key: 'X-Frame-Options',
value: 'DENY'
},
{
key: 'X-Content-Type-Options',
value: 'nosniff'
},
{
key: 'X-XSS-Protection',
value: '1; mode=block'
},
{
key: 'Referrer-Policy',
value: 'strict-origin-when-cross-origin'
}
]
}
]
},
// Configuración para desarrollo
serverExternalPackages: []
};
export default nextConfig;