Update license references
[nonrtric.git] / test / mrstub / app / nginx.conf
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2020-2022 Nordix Foundation. All rights reserved.
3 #  ========================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #  ============LICENSE_END=================================================
16 #
17
18 user www-data;
19 worker_processes auto;
20 pid /run/nginx.pid;
21 include /etc/nginx/modules-enabled/*.conf;
22
23 events {
24     worker_connections 768;
25 }
26
27 http {
28
29     ##
30     # Basic Settings
31     ##
32
33     sendfile on;
34     tcp_nopush on;
35     tcp_nodelay on;
36     keepalive_timeout 65;
37     types_hash_max_size 2048;
38
39     include /etc/nginx/mime.types;
40     default_type application/octet-stream;
41
42     server { # simple reverse-proxy
43         listen      3904;
44         listen      [::]:3904;
45         listen      3905 ssl;
46         listen      [::]:3905 ssl;
47         server_name  localhost;
48         ssl_certificate     /usr/src/app/cert/cert.crt;
49         ssl_certificate_key /usr/src/app/cert/key.crt;
50         ssl_password_file   /usr/src/app/cert/pass;
51
52         # serve dynamic requests
53         location / {
54             proxy_pass      http://localhost:2222;
55             client_max_body_size 0;
56         }
57     }
58     ##
59     # SSL Settings
60     ##
61
62     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
63     ssl_prefer_server_ciphers on;
64
65     ##
66     # Logging Settings
67     ##
68
69     access_log /var/log/nginx/access.log;
70     error_log /var/log/nginx/error.log;
71 }