f21e1735c368a2058ab0f87aaffa40180b1162ae
[sim/a1-interface.git] / near-rt-ric-simulator / 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      8085;
32         listen      [::]:8085;
33         listen      8185 ssl;
34         listen      [::]:8185 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
41         # serve dynamic requests
42         location / {
43             proxy_set_header   Host                 $host;
44             proxy_set_header   X-Real-IP            $remote_addr;
45             proxy_set_header   X-Forwarded-For      $proxy_add_x_forwarded_for;
46             proxy_pass      http://localhost:2222;
47         }
48     }
49     ##
50     # SSL Settings
51     ##
52
53     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
54     ssl_prefer_server_ciphers on;
55
56     ##
57     # Logging Settings
58     ##
59
60     access_log /var/log/nginx/access.log;
61     error_log /var/log/nginx/error.log;
62
63     ##
64     # Gzip Settings
65     ##
66
67     gzip on;
68
69     # gzip_vary on;
70     # gzip_proxied any;
71     # gzip_comp_level 6;
72     # gzip_buffers 16 8k;
73     # gzip_http_version 1.1;
74     # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
75
76     ##
77     # Virtual Host Configs
78     ##
79
80     include /etc/nginx/conf.d/*.conf;
81     include /etc/nginx/sites-enabled/*;
82 }
83
84
85 #mail {
86 #       # See sample authentication script at:
87 #       # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
88 #
89 #       # auth_http localhost/auth.php;
90 #       # pop3_capabilities "TOP" "USER";
91 #       # imap_capabilities "IMAP4rev1" "UIDPLUS";
92 #
93 #       server {
94 #               listen     localhost:110;
95 #               protocol   pop3;
96 #               proxy      on;
97 #       }
98 #
99 #       server {
100 #               listen     localhost:143;
101 #               protocol   imap;
102 #               proxy      on;
103 #       }
104 #}