[ci skip] onlyoffice: revert font cache NFS mounts, rebuild on startup

NFS font caching caused issues. Reverted to default GENERATE_FONTS=true
with 8 CPU burst limit for fast regeneration on startup.
This commit is contained in:
Viktor Barzin 2026-03-01 18:07:37 +00:00
parent 27e59a6af0
commit 35822e9207

View file

@ -142,24 +142,11 @@ resource "kubernetes_deployment" "onlyoffice-document-server" {
name = "JWT_SECRET"
value = var.onlyoffice_jwt_token
}
env {
name = "GENERATE_FONTS"
value = "false"
}
volume_mount {
name = "data"
mount_path = "/var/www/onlyoffice/Data"
}
volume_mount {
name = "font-cache"
mount_path = "/var/www/onlyoffice/documentserver/fonts"
}
volume_mount {
name = "font-cache"
mount_path = "/var/www/onlyoffice/documentserver/sdkjs/common/Images"
sub_path = "images"
}
}
volume {
name = "data"
@ -168,13 +155,6 @@ resource "kubernetes_deployment" "onlyoffice-document-server" {
server = var.nfs_server
}
}
volume {
name = "font-cache"
nfs {
path = "/mnt/main/onlyoffice-cache"
server = var.nfs_server
}
}
}
}
}