home · contact · privacy
6d84152d283856474d757cc6cf6af2cb3fdfbf61
[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 http {
8     # define content-type headers
9     include /etc/nginx/mime.types;
10     #charset utf-8;
11
12     # Some standard optimizations, i.e. Debian default. Explained in
13     # <https://thoughts.t37.net/nginx-optimization-understanding-sendfile-tcp-nodelay-and-tcp-nopush-c55cdd276765>
14     # Not that I understand it all …
15     sendfile on;
16     tcp_nopush on;
17     tcp_nodelay on;
18
19     # logging deactivated due to GDPR
20     #access_log /var/log/nginx/access.log;
21     #error_log /var/log/nginx/error.log;
22
23     # virtual hosts: sites-enabled is the Debian way, conf.d the NGINX default
24     include /etc/nginx/conf.d/*.conf;
25     include /etc/nginx/sites-enabled/*;
26
27     # If we wanted a simple file server …
28     ## HTTP server: only enforce HTTPS
29     #server {
30     #    listen 80;
31     #    return 301 https://$host$request_uri;
32     #}
33     #
34     ## HTTPS server
35     #server {
36     #    listen 443 ssl;
37     #    server_name REPLACE_fqdn_ECALPER;
38     #    ssl_certificate /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/fullchain.pem;
39     #    ssl_certificate_key /etc/letsencrypt/live/REPLACE_fqdn_ECALPER/privkey.pem;
40     #    root /var/www/html/;
41     #    index index.html index.htm index.nginx-debian.html;
42     #}
43 }