From a32dd4af6aa4bfe6cb9920cfd5fe509dab2b5005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Fri, 26 Jul 2024 17:01:56 +0200 Subject: [PATCH] Add location /images rule to serve photos --- nginx/default.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx/default.conf b/nginx/default.conf index 8d0cf78..9647afc 100644 --- a/nginx/default.conf +++ b/nginx/default.conf @@ -3,6 +3,11 @@ server { server_name localhost; root /usr/share/nginx/html; index index.html index.htm; + + location /images { + root /usr/share/nginx/html/images; + } + location / { try_files $uri $uri/ /index.html; }