Initial commit
[ta/infra-ansible.git] / roles / baremetal_provision / templates / nginx.conf
1 # Copyright 2019 Nokia
2
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 # For more information on configuration, see:
16 #   * Official English Documentation: http://nginx.org/en/docs/
17 #   * Official Russian Documentation: http://nginx.org/ru/docs/
18
19 worker_processes auto;
20 error_log /var/log/guest-img-nginx-error.log;
21 pid /run/guest-img-nginx.pid;
22
23 # Load dynamic modules. See /usr/share/nginx/README.dynamic.
24 include /usr/share/nginx/modules/*.conf;
25
26 events {
27     worker_connections 1024;
28 }
29
30 http {
31     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
32                       '$status $body_bytes_sent "$http_referer" '
33                       '"$http_user_agent" "$http_x_forwarded_for"';
34
35     access_log  /var/log/guest-img-nginx-access.log  main;
36
37     sendfile            on;
38     tcp_nopush          on;
39     tcp_nodelay         on;
40     keepalive_timeout   65;
41     types_hash_max_size 2048;
42
43     include             /etc/nginx/mime.types;
44     default_type        application/octet-stream;
45
46     # Load modular configuration files from the /opt/guest-img-nginx/conf.d directory.
47     include /opt/guest-img-nginx/guest-img-nginx.conf;
48
49
50 }