- config/docker/daemon.json: Docker security hardening with logging limits and security options - config/systemd/nginx.service.d/rate-limit.conf: Nginx resource limits and connection throttling - Includes deployment instructions for container and service security
13 lines
418 B
Plaintext
13 lines
418 B
Plaintext
# Nginx Service Rate Limiting Configuration
|
|
# Deploy to: /etc/systemd/system/nginx.service.d/rate-limit.conf
|
|
#
|
|
# Setup commands:
|
|
# sudo mkdir -p /etc/systemd/system/nginx.service.d
|
|
# sudo cp config/systemd/nginx.service.d/rate-limit.conf /etc/systemd/system/nginx.service.d/
|
|
# sudo systemctl daemon-reload
|
|
# sudo systemctl restart nginx
|
|
|
|
[Service]
|
|
# Limit nginx connections
|
|
LimitNOFILE=65536
|
|
LimitNPROC=4096 |