Skip to content

Instantly share code, notes, and snippets.

View VMuliadi's full-sized avatar

Vinsen Muliadi VMuliadi

View GitHub Profile
@VMuliadi
VMuliadi / nginx.conf
Last active July 9, 2023 06:02 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@VMuliadi
VMuliadi / sysctl.conf
Created April 15, 2019 09:15 — forked from voluntas/sysctl.conf
Sysctl configuration for high performance
### KERNEL TUNING ###
# Increase size of file handles and inode cache
fs.file-max = 2097152
# Do less swapping
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2