2024-02-02 03:05:08 +01:00
|
|
|
# This and proxy.conf are based on
|
|
|
|
# https://github.com/dead-guru/devichan/blob/master/nginx/nginx.conf
|
|
|
|
|
2024-03-31 15:49:09 +02:00
|
|
|
user www-data;
|
2024-02-09 20:01:07 +01:00
|
|
|
worker_processes auto;
|
2024-02-02 03:05:08 +01:00
|
|
|
|
|
|
|
error_log /dev/stdout warn;
|
2024-03-31 15:49:09 +02:00
|
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
2024-02-02 03:05:08 +01:00
|
|
|
events {
|
2024-02-09 20:01:07 +01:00
|
|
|
worker_connections 1024;
|
2024-02-02 03:05:08 +01:00
|
|
|
}
|
2024-03-31 15:49:09 +02:00
|
|
|
|
2024-02-02 03:05:08 +01:00
|
|
|
http {
|
2024-02-09 20:01:07 +01:00
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
2024-02-02 03:05:08 +01:00
|
|
|
|
2024-02-09 20:01:07 +01:00
|
|
|
# Switch logging to console out to view via Docker
|
|
|
|
access_log /dev/stdout;
|
|
|
|
error_log /dev/stdout warn;
|
|
|
|
sendfile on;
|
|
|
|
keepalive_timeout 5;
|
2024-02-02 03:05:08 +01:00
|
|
|
|
2024-02-09 20:01:07 +01:00
|
|
|
gzip on;
|
|
|
|
gzip_http_version 1.0;
|
|
|
|
gzip_vary on;
|
|
|
|
gzip_comp_level 6;
|
|
|
|
gzip_types text/xml text/plain text/css application/xhtml+xml application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php;
|
|
|
|
gzip_disable "MSIE [1-6]\.";
|
2024-02-02 03:05:08 +01:00
|
|
|
|
2024-02-09 20:01:07 +01:00
|
|
|
|
|
|
|
include /etc/nginx/conf.d/*.conf;
|
|
|
|
include /etc/nginx/sites-available/*.conf;
|
2024-02-02 03:05:08 +01:00
|
|
|
}
|