From 7b28e0d7a0f581497526327cd0a90f7124cd0892 Mon Sep 17 00:00:00 2001 From: Priec Date: Mon, 29 Jun 2026 12:38:27 +0200 Subject: [PATCH] caching implemented and a flake tool for logo --- assets/views/base.html | 2 +- config/development.yaml | 4 ++++ config/production.yaml | 4 ++++ flake.nix | 2 ++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/assets/views/base.html b/assets/views/base.html index 42997c0..9e63312 100644 --- a/assets/views/base.html +++ b/assets/views/base.html @@ -62,7 +62,7 @@ } - + diff --git a/config/development.yaml b/config/development.yaml index 6909ecc..a829d8f 100644 --- a/config/development.yaml +++ b/config/development.yaml @@ -24,6 +24,10 @@ server: host: http://localhost # Out of the box middleware configuration. to disable middleware you can changed the `enable` field to `false` of comment the middleware block middlewares: + # gzip/br compression for text responses (HTML, CSS, JS) — Lighthouse + # "Document request latency: No compression applied". + compression: + enable: true static: enable: true must_exist: true diff --git a/config/production.yaml b/config/production.yaml index eee8bd4..29cfc27 100644 --- a/config/production.yaml +++ b/config/production.yaml @@ -9,6 +9,10 @@ server: binding: "{{ get_env(name="SERVER_BINDING", default="0.0.0.0") }}" host: "{{ get_env(name="APP_HOST") }}" middlewares: + # gzip/br compression for text responses (HTML, CSS, JS) — Lighthouse + # "Document request latency: No compression applied". + compression: + enable: true static: enable: true must_exist: true diff --git a/flake.nix b/flake.nix index 025db54..f1d2893 100644 --- a/flake.nix +++ b/flake.nix @@ -95,6 +95,8 @@ pkgs.llvmPackages.libclang.lib # loco-rs CLI workflow helpers pkgs.sea-orm-cli + # Logo/vector asset workflow helpers + pkgs.potrace ]; PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig"; LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";