From 239c9e240fc91be89a9add995929c7c35a14f804 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 27 Mar 2023 16:08:38 +0200 Subject: [PATCH] docs: add fonts cache header to nginx config --- docs/pronounscc.nginx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/pronounscc.nginx b/docs/pronounscc.nginx index cd24039..39a1bfc 100644 --- a/docs/pronounscc.nginx +++ b/docs/pronounscc.nginx @@ -64,6 +64,13 @@ server { proxy_pass http://127.0.0.1:9000; } + location ~ ^/fonts { + expires 1y; + add_header Cache-Control "public, no-transform"; + + proxy_pass http://127.0.0.1:3000; + } + location / { proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade';