home · contact · privacy
63ea6202ef93c8b2f8cac3466e453abfa8cfff3b
[config] / buster / 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
27     # virtual hosts: sites-enabled is the Debian way, conf.d the NGINX default
28     include /etc/nginx/conf.d/*.conf;
29     include /etc/nginx/sites-enabled/*;
30
31     # If we wanted a simple file server …
32     ## HTTP server: only enforce HTTPS
33     #server {
34     #    listen 80;
35     #    return 301 https://$host$request_uri;
36     #}
37     #
38     ## HTTPS server
39     #server {
40     #    listen 443 ssl;
41     #    server_name REPLACE_fqdn_ECALPER;
42     #    ssl_certificate /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/fullchain.pem;
43     #    ssl_certificate_key /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/privkey.pem;
44     #    root /var/www/html/;
45     #    index index.html index.htm index.nginx-debian.html;
46     #}
47 }