Unify nginx configuration

This creates a simple base configuration skeleton, that other configuration can be easily loaded into.
This commit is contained in:
Jake Howard
2023-12-16 17:47:04 +00:00
parent 943c141d59
commit 92052a3d0a
16 changed files with 160 additions and 216 deletions

View File

@ -1,29 +1,12 @@
worker_processes auto;
# Block requests which don't have an explicit handler
server {
listen 80 default_server;
listen [::]:80 default_server;
events {
worker_connections 1024;
server_name _;
access_log off;
return 418;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
# Block requests which don't have an explicit handler
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
access_log off;
return 418;
}
# Load configuration files for the default server block.
include /etc/nginx/conf.d/*.conf;
}
# Load configuration files for the default server block (this directory is used by dokku).
include /etc/nginx/conf.d/*.conf;