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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
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/
19 worker_processes auto;
20 error_log /var/log/guest-img-nginx-error.log;
21 pid /run/guest-img-nginx.pid;
23 # Load dynamic modules. See /usr/share/nginx/README.dynamic.
24 include /usr/share/nginx/modules/*.conf;
27 worker_connections 1024;
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"';
35 access_log /var/log/guest-img-nginx-access.log main;
41 types_hash_max_size 2048;
43 include /etc/nginx/mime.types;
44 default_type application/octet-stream;
46 # Load modular configuration files from the /opt/guest-img-nginx/conf.d directory.
47 include /opt/guest-img-nginx/guest-img-nginx.conf;