home · contact · privacy
98626de2ed962d5da8fe8080ede3193a3c25388b
[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                 location / {
29                         auth_basic "IRC logs";
30                         auth_basic_user_file /var/www/password_irclogs_zrolaps;
31                         autoindex on;
32                         root /var/www/irclogs_zrolaps/;
33                 }
34         }
35
36         # htwtxt
37         server {
38                 server_name htwtxt.plomlompom.com;
39                 location / {
40                         proxy_pass http://127.0.0.1:8000;
41                 }
42         }
43 }