Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor/new-implementation #74

Merged
merged 3 commits into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .gdb_history

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ bin/
build/
webserv


43 changes: 0 additions & 43 deletions .vscode/launch.json

This file was deleted.

76 changes: 0 additions & 76 deletions .vscode/settings.json

This file was deleted.

30 changes: 0 additions & 30 deletions CMakeLists.txt

This file was deleted.

3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SRC_DIR := src
BUILD_DIR := build
TESTS_DIR := tests

SRCS := $(wildcard $(SRC_DIR)/*.cpp)
SRCS := $(shell find $(SRC_DIR) -name "*.cpp")
OBJS := $(patsubst $(SRC_DIR)/%.cpp, $(BUILD_DIR)/%.o, $(SRCS))
NAME := webserv

Expand All @@ -23,6 +23,7 @@ $(NAME): $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $^

$(BUILD_DIR)/%.o: $(SRC_DIR)/%.cpp | $(BUILD_DIR)
@mkdir -p $(dir $@)
$(CXX) $(CXXFLAGS) -c -o $@ $<

$(BUILD_DIR):
Expand Down
60 changes: 0 additions & 60 deletions arquivo.conf

This file was deleted.

36 changes: 36 additions & 0 deletions config/default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
server {
host 127.0.0.1;
port 8080;
server_names example.com www.example.com;
client_max_size 10M;

error_pages {
404 /errors/404.html;
500 /errors/500.html;
}

location / {
methods GET POST DELETE;
root /var/www/html;
directory_list on;
index index.html;
client_max_size 20M;

cgi {
extension .php;
path /usr/bin/php-cgi;
}

upload {
path /var/www/uploads;
max_size 5M;
}
}

location /redirect {
redirect {
code 301;
url /new-location;
}
}
}
File renamed without changes.
24 changes: 0 additions & 24 deletions default.conf

This file was deleted.

34 changes: 0 additions & 34 deletions include/Client.hpp

This file was deleted.

Loading
Loading