2023-10-08 12:28:14 -05:00
|
|
|
user http;
|
|
|
|
worker_processes 4;
|
|
|
|
|
|
|
|
# Logs
|
|
|
|
error_log logs/error.log;
|
|
|
|
error_log logs/error.log notice;
|
|
|
|
error_log logs/error.log info;
|
|
|
|
|
2023-11-09 13:03:06 -06:00
|
|
|
load_module /usr/lib/nginx/modules/ngx_http_modsecurity_module.so;
|
|
|
|
|
2023-10-08 12:28:14 -05:00
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
http {
|
|
|
|
|
|
|
|
include mime.types;
|
|
|
|
include fastcgi.conf;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
server_tokens off;
|
|
|
|
sendfile on;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
gzip on;
|
|
|
|
|
|
|
|
# Redirect all HTTP to HTTPS
|
|
|
|
server {
|
|
|
|
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
server_name _;
|
|
|
|
location / {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
2023-11-09 13:03:06 -06:00
|
|
|
|
2023-10-08 12:28:14 -05:00
|
|
|
}
|
|
|
|
|
2023-11-09 13:03:06 -06:00
|
|
|
include conf.d/*.conf;
|
2023-10-08 12:28:14 -05:00
|
|
|
}
|