Add location /images rule to serve photos

This commit is contained in:
Maciej Pędzich 2024-07-26 17:01:56 +02:00
parent f846efc226
commit a32dd4af6a
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D

View File

@ -3,6 +3,11 @@ server {
server_name localhost; server_name localhost;
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html index.htm; index index.html index.htm;
location /images {
root /usr/share/nginx/html/images;
}
location / { location / {
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }