Unverified Commit 4724def7 authored by Tom Moulard's avatar Tom Moulard
Browse files

nginx: adding some rules for chaching and security

parent 1e981f57
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -6,4 +6,9 @@ server {
        try_files $uri $uri/ =404;
        autoindex on;
    }
    # deny all direct access for these folders
    location ~* /(.git|cache|bin|logs|backup|tests)/.*$ { return 403; }
    location ~* ^.+\.(ico|js|gif|jpg|jpeg|png|bmp)$ {
        expires 30d;
    }
}