home · contact · privacy
Add bullseye dumpsite setup.
[config] / bullseye / etc_files / web / etc / nginx / nginx.conf
1 # system integration
2 user www-data;
3 worker_processes auto;
4 pid /run/nginx.pid;
5 include /etc/nginx/modules-enabled/*.conf;
6
7 # is expected even if empty
8 events {
9 }
10
11 http {
12     # define content-type headers
13     include /etc/nginx/mime.types;
14     charset utf-8;
15
16     # Some standard optimizations, i.e. Debian default. Explained in
17     # <https://thoughts.t37.net/nginx-optimization-understanding-sendfile-tcp-nodelay-and-tcp-nopush-c55cdd276765>
18     # Not that I understand it all …
19     sendfile on;
20     tcp_nopush on;
21     tcp_nodelay on;
22
23     # logging deactivated due to GDPR
24     #access_log /var/log/nginx/access.log;
25     #error_log /var/log/nginx/error.log;
26     access_log off;
27     error_log off;
28
29     # virtual hosts: sites-enabled is the Debian way, conf.d the NGINX default
30     include /etc/nginx/conf.d/*.conf;
31     include /etc/nginx/sites-enabled/*;
32
33     # Redirect all HTTP requests to HTTPS.
34     server {
35         listen 80;
36         return 301 https://$host$request_uri;
37     }
38 }