mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -1 +0,0 @@
|
||||
net.core.somaxconn = 65535
|
||||
@@ -1,4 +0,0 @@
|
||||
* soft nofile 1048576
|
||||
* hard nofile 1048576
|
||||
root soft nofile 1048576
|
||||
root hard nofile 1048576
|
||||
@@ -1,7 +1,24 @@
|
||||
from ssh_lib import ASSETS_DIR
|
||||
from ssh_lib.utils import put
|
||||
from ssh_lib.utils import put, put_str
|
||||
|
||||
|
||||
def setup_kernel_settings(c):
|
||||
put(c, f'{ASSETS_DIR}/kernel/60-ofm.conf', '/etc/sysctl.d/')
|
||||
put(c, f'{ASSETS_DIR}/kernel/limits-ofm.conf', '/etc/security/limits.d/')
|
||||
def kernel_somaxconn65k(c):
|
||||
put_str(c, '/etc/sysctl.d/60-somaxconn65k.conf', 'net.core.somaxconn = 65535')
|
||||
|
||||
|
||||
def kernel_limits1m(c):
|
||||
put_str(
|
||||
c,
|
||||
'/etc/security/limits.d/limits1m.conf',
|
||||
"""
|
||||
* soft nofile 1048576
|
||||
* hard nofile 1048576
|
||||
root soft nofile 1048576
|
||||
root hard nofile 1048576
|
||||
""",
|
||||
)
|
||||
|
||||
|
||||
def kernel_tweaks_ofm(c):
|
||||
kernel_somaxconn65k(c)
|
||||
kernel_limits1m(c)
|
||||
|
||||
@@ -54,6 +54,7 @@ def nginx(c):
|
||||
|
||||
|
||||
def mime_types(c):
|
||||
# TODO
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user