Skip to content
2 changes: 2 additions & 0 deletions frameworks/aegon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ target_include_directories(aegon-arena PRIVATE

target_link_libraries(aegon-arena PRIVATE
Aegon::http
Aegon::net
Aegon::core
Aegon::config
Aegon::storage
glaze::glaze
Threads::Threads
${Protobuf_LIBRARIES}
Expand Down
6 changes: 5 additions & 1 deletion frameworks/aegon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ RUN pacman -Syu --noconfirm --needed \
libdeflate \
sqlite \
postgresql-libs \
libngtcp2 \
libnghttp3 \
protobuf

ARG AEGON_REPO=https://github.com/UdayKhare09/Aegon.git
ARG AEGON_REF=main
ARG AEGON_COMMIT=ec6afdb
ARG AEGON_COMMIT=8b0319e

WORKDIR /src
RUN echo "Building Aegon commit: ${AEGON_COMMIT}" && \
Expand Down Expand Up @@ -49,6 +51,8 @@ RUN pacman -Syu --noconfirm --needed \
sqlite \
postgresql-libs \
jemalloc \
libngtcp2 \
libnghttp3 \
protobuf && \
pacman -Scc --noconfirm

Expand Down
5 changes: 3 additions & 2 deletions frameworks/aegon/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ void register_routes(Router& router) {

// 5. JSON serialization & compression endpoint (zero-copy view)
router.get("/json/:count", {aegon::http::middleware::Compress({
.level = 5,
.min_size = 64,
.gzip = true,
.deflate = true,
Expand Down Expand Up @@ -202,7 +203,7 @@ void register_routes(Router& router) {
ctx.res().body_view(ctx.req().body());
});

// 7. Static file serving (static-h2, static-h3) - Aegon core static_files API
// 7. Static file serving (static-tls, static-h2, static-h3) - Aegon core static_files API
const char* static_dir = std::filesystem::exists("/data/static") ? "/data/static" : "data/static";
router.static_files("/static", static_dir);

Expand Down Expand Up @@ -328,7 +329,7 @@ int main() {
server.buffer_pool_entries(256);
} else {
server.ring_entries(2048);
server.buffer_pool_entries(2048);
server.buffer_pool_entries(512);
}
server.tcp_nodelay(true);
server.h2_max_concurrent_streams(2000);
Expand Down
Loading