17 lines
440 B
Nginx Configuration File
17 lines
440 B
Nginx Configuration File
# vim: ft=nginx
|
|
|
|
server {
|
|
listen 80 default_server;
|
|
server_name _;
|
|
|
|
set_real_ip_from 10.0.0.0/8;
|
|
real_ip_header proxy_protocol;
|
|
|
|
log_format elb '$proxy_protocol_addr - $remote_user [$time_local] '
|
|
'"$request" $status $body_bytes_sent '
|
|
'"$http_referer" "$http_user_agent"';
|
|
|
|
access_log /var/log/nginx/nginx.access.log elb;
|
|
|
|
rewrite ^ https://$host$request_uri? permanent;
|
|
}
|