Jack 1124d76045
Some checks failed
Build and push image / Build (push) Failing after 35s
removed ARM images (unused), Migrated php-2.2 CLI crons to the FPM image
2024-11-12 14:08:09 +00:00

56 lines
1.2 KiB
Nginx Configuration File

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
events {
worker_connections 768;
#multi_accept on;
}
http {
server_names_hash_bucket_size 128;
# set_real_ip_from 172.18.0.0/16;
# set_real_ip_from fd00:0:0:0:2::/64;
real_ip_recursive on;
real_ip_header X-Forwarded-For;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# sub_filter '</head>' '<script async="" src="https://ip-update.net/ipupdate.js"></script> </head>';
# sub_filter_once on;
##
# Basic Settings
##
server_tokens off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
client_max_body_size 20480m;
client_body_timeout 420s;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log debug;
gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}