Commit Graph

36 Commits

Author SHA1 Message Date
whaffman
02a8a407d4 42_tester shenanigans 2025-11-11 19:07:13 +01:00
Quinten
264d539ada updat econfig 2025-11-11 17:33:31 +01:00
whaffman
7bb3e850c0 feat: implement file upload handling with multipart support 2025-11-11 15:29:16 +01:00
Quinten
5d4265eab3 works? 2025-11-06 19:10:30 +01:00
Quinten
a52f27d6b7 tmp: stash commit 2025-11-06 15:42:39 +01:00
whaffman
cd1932762a Merge branch 'main' into cgi-standalone 2025-11-04 17:10:25 +01:00
whaffman
7115a7b907 fix: added TODO's on what to work on 2025-11-04 15:43:00 +01:00
whaffman
13f14e8e5e feat: add CGI standalone 2025-10-31 16:01:38 +01:00
whaffman
7072f71e00 fix: add missing semicolons in location and cgi_handler directives in default.conf 2025-10-31 13:33:36 +01:00
whaffman
334c378d23 change cgi_ext to cgi_handler 2025-10-30 15:06:13 +01:00
Quinten
e1e3003d94 conf for tester 2025-10-29 15:51:23 +01:00
whaffman
5a2d801992 feat: add autoindex location configuration and enhance URI handling for directory paths 2025-10-29 11:58:06 +01:00
whaffman
9e773e43fd feat: implement redirect handling and update configuration 2025-10-28 22:02:11 +01:00
whaffman
0ed0e15e70 feat: update server configuration and enhance file handling
- Increased client_max_body_size to 1000m in default.conf and location /post_body
- Added index.html for YoupiBanane with a welcome message
- Created empty other.pouic file
- Updated FileHandler to change error response from 404 to 403 for forbidden access
- Modified log output to include blue text for status messages
- Changed signal handling variable from stop_ to signum_ in Server class
- Increased MAX_EVENTS in Server run method from 10 to 1024
2025-10-28 15:02:55 +01:00
whaffman
d1b392d2a2 match index in URI 2025-10-20 15:33:55 +02:00
whaffman
0d57ce4f27 trying to setup tester weird stufffff 2025-10-19 14:22:00 +02:00
whaffman
a8dd8a77a5 error response 2025-10-16 14:52:25 +02:00
Quinten
0887acd81a feat(config): add new server configuration for site-3 and implement CGI support
feat(site-3): create index.php for site-3 with a greeting message
refactor(client): change setCgiSocket to accept unique_ptr for better memory management
fix(AConfig): adjust getCGIPath to correctly prepend dot to extension
refactor(CgiProcess): update CGI process handling to use unique_ptr for CgiSocket
refactor(URI): enhance logging for CGI checks and improve condition checks
refactor(Router): clean up commented code and add debug logging for CGI process
fix(Server): improve error logging for epoll_ctl failures
2025-10-15 17:03:49 +02:00
Quinten
7134e26f6f refactor: make response async 2025-10-15 15:28:09 +02:00
whaffman
4614a2d382 moved sites to htdocs and ran format script 2025-10-09 22:57:31 +02:00
whaffman
7b6ce8fd67 refactor: optimize compiler options and clean up unused directives 2025-10-07 22:38:00 +02:00
Quinten
c74bebd75b fix: update server configuration 2025-10-07 16:40:32 +02:00
whaffman
95753eea34 feat(validation): implement configuration validation framework with rules for required directives and allowed values 2025-10-06 14:48:15 +02:00
whaffman
ab83c02fd2 claude made a website 2025-10-01 18:03:00 +02:00
whaffman
bcd33dacd7 feat: serve static pages 2025-10-01 17:50:10 +02:00
Quinten
c5f7b82997 fix: correct path for 404 error page in default configuration 2025-09-30 20:03:17 +02:00
Quinten
9320d83378 feat: add custom 400 error page and update configuration for error handling 2025-09-30 18:02:13 +02:00
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