4 error_log logs/error.log;
5 error_log logs/error.log notice;
6 error_log logs/error.log info;
12 worker_connections 1024;
18 default_type application/octet-stream;
20 log_format main '$remote_addr - $remote_user [$time_local] "$request" '
21 '$status $body_bytes_sent "$http_referer" '
22 '"$http_user_agent" "$http_x_forwarded_for"';
24 #access_log logs/access.log main;
30 ssl_session_cache shared:SSL:10m;
31 ssl_session_timeout 10m;
35 server_name localhost;
36 return 302 https://$server_name$request_uri;
41 server_name localhost;
44 root /usr/local/openresty/nginx/html;
47 location ~*.(htm|html){
48 add_header Cache-Control no-cache;
52 ssl_certificate /etc/ssl/certs/holmes-frontend-selfsigned.crt;
53 ssl_certificate_key /etc/ssl/private/holmes-frontend.key;
54 ssl_dhparam /etc/ssl/certs/dhparam.pem;