Merge pull request #50 from DarkKirb/nginx-proxy-limit-size

configure the cache
This commit is contained in:
Charlotte 🦝 Delenk 2022-11-19 21:26:04 +01:00 committed by GitHub
commit b3c93296ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
{
services.nginx = {
enable = true;
commonHttpConfig = "proxy_cache_path /var/cache/mediacache levels=1:2 keys_zone=akkoma_media_cache:10m inactive=1y use_temp_path=off;";
commonHttpConfig = "proxy_cache_path /var/cache/mediacache levels=2:2:2 keys_zone=akkoma_media_cache:25m inactive=1y use_temp_path=off min_free=10G;";
virtualHosts."mail.chir.rs".listen = [
{
addr = "127.0.0.1";