From 60952484defc4136d73d425398718d9e3587b4d1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 9 Oct 2023 15:59:53 +0200 Subject: [PATCH] Implement rate limits and code cleanup --- .../Run_client_with_local_proxy.xml | 15 ++++++ .idea/runConfigurations/Run_server.xml | 1 + .../Run_server_with_rate_limiting.xml | 26 ++++++++++ todoblue/src/app/[lang]/(page)/RootFooter.tsx | 3 +- todopod/compose-build.yml | 25 ++++++++++ todored/src/config.rs | 3 +- todored/src/main.rs | 1 + todored/src/proxy.rs | 49 +++++++++++++++---- todored/src/routes/board/axum.rs | 48 +++++++++--------- todored/src/routes/board/limit.rs | 10 ++-- todored/src/routes/board/ws.rs | 15 +++++- todored/src/routes/board/ws_receive.rs | 16 ++++++ 12 files changed, 172 insertions(+), 40 deletions(-) create mode 100644 .idea/runConfigurations/Run_client_with_local_proxy.xml create mode 100644 .idea/runConfigurations/Run_server_with_rate_limiting.xml create mode 100644 todopod/compose-build.yml diff --git a/.idea/runConfigurations/Run_client_with_local_proxy.xml b/.idea/runConfigurations/Run_client_with_local_proxy.xml new file mode 100644 index 0000000..579b930 --- /dev/null +++ b/.idea/runConfigurations/Run_client_with_local_proxy.xml @@ -0,0 +1,15 @@ + + + + + +