home · contact · privacy
ac07114f8bb9552a0fd32ebbca92d1167eb510ab
[config] / systemfiles / nginx.conf
1 # system integration
2 user www-data;
3 pid /run/nginx.pid;
4
5 # is expected even if empty
6 events {
7 }
8
9 http {
10         # define content-type headers
11         types {
12             text/html                             html htm shtml;
13             text/css                              css;
14             text/xml                              xml;
15             text/plain                            txt;
16             text/plain                            sh;
17             application/xhtml+xml                 xhtml;
18         }
19         default_type application/octet_stream;
20         charset utf-8;
21
22         # logging
23         access_log /var/log/nginx/access.log;
24         error_log /var/log/nginx/error.log;
25
26         # IRC logs server
27         server {
28                 listen 443 ssl;
29                 server_name dump.plomlompom.com;
30                 ssl_certificate /etc/letsencrypt/live/dump.plomlompom.com/fullchain.pem;
31                 ssl_certificate_key /etc/letsencrypt/live/dump.plomlompom.com/privkey.pem;
32                 location / {
33                         root /var/www/html/;
34                 }
35                 location /irclogs/zrolaps/ {
36                         auth_basic "#zrolaps logs";
37                         auth_basic_user_file /var/www/password_irclogs_zrolaps;
38                         autoindex on;
39                         root /var/www/html/irclogs/zrolaps/;
40                 }
41                 location /irclogs/zrolaps/ {
42                         auth_basic "#nodrama.de logs";
43                         auth_basic_user_file /var/www/password_irclogs_nodrama_de;
44                         autoindex on;
45                         root /var/www/html/irclogs/nodrama.de/;
46                 }
47         }
48
49         # htwtxt
50         server {
51                 server_name htwtxt.plomlompom.com;
52                 location / {
53                         proxy_pass http://127.0.0.1:8000;
54                 }
55         }
56 }