mirror of
https://github.com/valitydev/salt-common.git
synced 2024-11-06 18:35:18 +00:00
sls/nginx/nginx.conf.tpl: update config template for nginx;
This commit is contained in:
parent
7642ec311d
commit
8db5bf1f5c
@ -50,12 +50,16 @@ http {
|
||||
ssl_session_cache {{ ssl_session_cache }};
|
||||
ssl_session_timeout {{ ssl_session_timeout }};
|
||||
ssl_session_tickets on;
|
||||
#ssl_session_ticket_key
|
||||
#ssl_stapling on;
|
||||
|
||||
index index.html;
|
||||
map $ssl_client_s_dn $ssl_client_s_dn_cn {
|
||||
default "";
|
||||
~[/,]?CN=(?<CN>[^/,]+) $CN;
|
||||
}
|
||||
|
||||
log_format tls_client '[$time_local] $http_host $remote_addr $ssl_client_s_dn_cn'
|
||||
' "$request" [$status] $upstream_cache_status $bytes_sent $request_time'
|
||||
' "$http_referer" "$http_user_agent" "$http_cookie"';
|
||||
|
||||
include cf_real_ip.conf;
|
||||
include /etc/nginx/vhosts.d/*.conf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user