Server-Hardening/discourse.conf

5 lines
235 B
Plaintext
Raw Normal View History

## Discourse needs hugepage and vm_overcommit_memory
echo 'sys.kernel.mm.transparent_hugepage.enabled=never' > /etc/sysctl.d/10-huge-pages.conf
echo 'vm.overcommit_memory=1' > /etc/sysctl.d/90-vm_overcommit_memory.conf
sysctl --system