Commit Graph

9 Commits

Author SHA1 Message Date
whaffman
b7f8947440 feat: add custom 400 error page and update configuration for error handling 2025-09-30 10:41:53 +02:00
whaffman
c841142e79 Refactor configuration handling and directive parsing
- Introduced AConfig class to handle common configuration functionalities.
- Added GlobalConfig class to manage multiple ServerConfig instances.
- Updated ServerConfig to utilize the new AConfig base class.
- Refactored directive parsing logic to improve clarity and maintainability.
- Enhanced utility functions for removing comments and empty lines from configuration blocks.
- Updated directive classes to use consistent naming for value retrieval methods.
- Improved logging for better traceability during configuration parsing.
- Removed unused includes and cleaned up code for better readability.
2025-09-26 18:06:37 +02:00
Quinten
c9e74ca508 feat(directives): implement directive parsing and factory pattern for configuration 2025-09-25 17:33:14 +02:00
Quinten Mennen
a2db0659c6 Refactor server configuration and implementation: update listen ports in default.conf, enhance Server class with connection handling, and improve socket management in Server.cpp. 2025-09-16 17:08:10 +02:00
Quinten Mennen
0a26702457 Update server configuration and improve utility functions: change host to 127.0.0.1, modify root path, enhance trimSemi function, and adjust directive parsing logic. 2025-09-16 15:35:04 +02:00
whaffman
94653db136 Implement server initialization: add Server class with constructor to initialize host and port from ConfigManager 2025-09-16 15:05:35 +02:00
whaffman
3ee0a607a1 Enhance configuration management: add getter methods for server configuration details, improve location handling, and update main to display server information 2025-09-14 22:55:20 +02:00
whaffman
cb88b9dc13 first config parse try 2025-09-14 21:15:32 +02:00
whaffman
f7bc063227 Refactor project structure: remove MyModule, implement ConfigManager, and enhance CMake/Makefile for multiple build types 2025-09-11 12:36:31 +02:00