」 feat: Finished parsing (should be working)

This commit is contained in:
2025-03-26 08:48:33 +01:00
parent dbba3f0668
commit 1f18956cb6
11 changed files with 384 additions and 150 deletions

View File

@ -3,17 +3,6 @@ server_names = { "localhost", "2B5.local" }
host = "localhost"
port = 8080
root = "/var/www/html"
methods = { "GET", "POST", "DELETE" }
dirlist = false
uploads = false
cookies = false
cgi.py = "/usr/bin/python3"
client_max_body_size = "10M"
[server.error_pages]
404 = "not_found.html"
401 = "unauthorized.html"
@ -25,12 +14,8 @@ root = "/var/www/html"
dirlist = true
client_max_body_size = "10M"
[server.location./.error_pages]
500 = "uwu.html"
[server.location./api]
methods = { "GET", "POST" }
uploads = true
root = "/var/www/api"
upload_path = "/etc/webserv/up"
cgi.go = "/bin/go"