ceph/examples/rgw-cache/nginx.conf
ofriedma d73b879ac1 rgw: fix nginx-rgw docs
Signed-off-by: Or Friedmann <ofriedma@redhat.com>

Signed-off-by: Mark Kogan <mkogan@redhat.com>
2020-06-01 12:24:19 +03:00

41 lines
1.2 KiB
Nginx Configuration File

user nginx;
#Process per core
worker_processes auto;
pid /var/run/nginx.pid;
events {
#Number of connections per worker
worker_connections 1024;
}
http {
types_hash_max_size 4096;
lua_package_path '/usr/local/openresty/lualib/?.lua;;';
aws_auth $aws_token {
# access key and secret key of the cache
# Please substitute with the access key and secret key of the amz-cache cap user
access_key cache;
secret_key cache;
service s3;
region us-east-1;
}
# This map is used to choose the original authorization header if the aws_auth module refuse to create one
map $aws_token $awsauth {
default $http_authorization;
~. $aws_token; # Regular expression to match any value
}
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nodelay on;
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
}