|
| 1 | +# For more information on configuration, see: |
| 2 | +# * Official English Documentation: http://nginx.org/en/docs/ |
| 3 | +# * Official Russian Documentation: http://nginx.org/ru/docs/ |
| 4 | + |
| 5 | + |
| 6 | +worker_processes auto; |
| 7 | +error_log /var/log/nginx/error.log; |
| 8 | +pid /run/nginx.pid; |
| 9 | + |
| 10 | +# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. |
| 11 | +include /usr/share/nginx/modules/*.conf; |
| 12 | + |
| 13 | +events { |
| 14 | + worker_connections 1024; |
| 15 | +} |
| 16 | + |
| 17 | +http { |
| 18 | + # perl_modules /opt/app-root/etc/perl; |
| 19 | + # perl_require Version.pm; |
| 20 | + # perl_set $perl_version Version::installed; |
| 21 | + |
| 22 | + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' |
| 23 | + '$status $body_bytes_sent "$http_referer" ' |
| 24 | + '"$http_user_agent" "$http_x_forwarded_for"'; |
| 25 | + |
| 26 | + |
| 27 | + sendfile on; |
| 28 | + tcp_nopush on; |
| 29 | + tcp_nodelay on; |
| 30 | + keepalive_timeout 65; |
| 31 | + types_hash_max_size 2048; |
| 32 | + |
| 33 | + include /etc/nginx/mime.types; |
| 34 | + default_type application/octet-stream; |
| 35 | + |
| 36 | + # Load modular configuration files from the /etc/nginx/conf.d directory. |
| 37 | + # See http://nginx.org/en/docs/ngx_core_module.html#include |
| 38 | + # for more information. |
| 39 | + include /opt/app-root/etc/nginx.d/*.conf; |
| 40 | + |
| 41 | + server { |
| 42 | + listen 8080 default_server; |
| 43 | + listen [::]:8080 default_server; |
| 44 | + server_name _; |
| 45 | + root /opt/app-root/src; |
| 46 | + |
| 47 | + # Load configuration files for the default server block. |
| 48 | + include /opt/app-root/etc/nginx.default.d/*.conf; |
| 49 | + |
| 50 | + location / { |
| 51 | + } |
| 52 | + |
| 53 | + error_page 404 /404.html; |
| 54 | + location = /40x.html { |
| 55 | + } |
| 56 | + |
| 57 | + error_page 500 502 503 504 /50x.html; |
| 58 | + location = /50x.html { |
| 59 | + } |
| 60 | + } |
| 61 | + |
| 62 | +# Settings for a TLS enabled server. |
| 63 | +# |
| 64 | +# server { |
| 65 | +# listen 443 ssl http2 default_server; |
| 66 | +# listen [::]:443 ssl http2 default_server; |
| 67 | +# server_name _; |
| 68 | +# root /opt/app-root/src; |
| 69 | +# |
| 70 | +# ssl_certificate "/etc/pki/nginx/server.crt"; |
| 71 | +# ssl_certificate_key "/etc/pki/nginx/private/server.key"; |
| 72 | +# ssl_session_cache shared:SSL:1m; |
| 73 | +# ssl_session_timeout 10m; |
| 74 | +# ssl_ciphers PROFILE=SYSTEM; |
| 75 | +# ssl_prefer_server_ciphers on; |
| 76 | +# |
| 77 | +# # Load configuration files for the default server block. |
| 78 | +# include /opt/app-root/etc/nginx.default.d/*.conf; |
| 79 | +# |
| 80 | +# location / { |
| 81 | +# } |
| 82 | +# |
| 83 | +# error_page 404 /404.html; |
| 84 | +# location = /40x.html { |
| 85 | +# } |
| 86 | +# |
| 87 | +# error_page 500 502 503 504 /50x.html; |
| 88 | +# location = /50x.html { |
| 89 | +# } |
| 90 | +# } |
| 91 | + |
| 92 | +} |
| 93 | + |
0 commit comments