be342b10ed5cdff23563043e0ac5f7e9adb6819b
[nonrtric.git] / test / mrstub / app / nginx.conf
1 # user www-data;
2 worker_processes auto;
3 pid /run/nginx.pid;
4 include /etc/nginx/modules-enabled/*.conf;
5
6 events {
7     worker_connections 768;
8     # multi_accept on;
9 }
10
11 http {
12
13     ##
14     # Basic Settings
15     ##
16
17     sendfile on;
18     tcp_nopush on;
19     tcp_nodelay on;
20     keepalive_timeout 65;
21     types_hash_max_size 2048;
22     # server_tokens off;
23
24     # server_names_hash_bucket_size 64;
25     # server_name_in_redirect off;
26
27     include /etc/nginx/mime.types;
28     default_type application/octet-stream;
29
30     server { # simple reverse-proxy
31         listen      3904;
32         listen      [::]:3904;
33         listen      3905 ssl;
34         listen      [::]:3905 ssl;
35         server_name  localhost;
36         ssl_certificate     /usr/src/app/cert/cert.crt;
37         ssl_certificate_key /usr/src/app/cert/key.crt;
38         ssl_password_file   /usr/src/app/cert/pass;
39
40         # serve dynamic requests
41         location / {
42             proxy_pass      http://localhost:2222;
43             client_max_body_size 0;
44         }
45     }
46     ##
47     # SSL Settings
48     ##
49
50     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
51     ssl_prefer_server_ciphers on;
52
53     ##
54     # Logging Settings
55     ##
56
57     access_log /var/log/nginx/access.log;
58     error_log /var/log/nginx/error.log;
59
60     ##
61     # Gzip Settings
62     ##
63
64     gzip on;
65
66     # gzip_vary on;
67     # gzip_proxied any;
68     # gzip_comp_level 6;
69     # gzip_buffers 16 8k;
70     # gzip_http_version 1.1;
71     # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
72
73     ##
74     # Virtual Host Configs
75     ##
76
77     include /etc/nginx/conf.d/*.conf;
78     include /etc/nginx/sites-enabled/*;
79 }
80
81
82 #mail {
83 #       # See sample authentication script at:
84 #       # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
85 #
86 #       # auth_http localhost/auth.php;
87 #       # pop3_capabilities "TOP" "USER";
88 #       # imap_capabilities "IMAP4rev1" "UIDPLUS";
89 #
90 #       server {
91 #               listen     localhost:110;
92 #               protocol   pop3;
93 #               proxy      on;
94 #       }
95 #
96 #       server {
97 #               listen     localhost:143;
98 #               protocol   imap;
99 #               proxy      on;
100 #       }
101 #}