simplify conf add ssl hook server
This commit is contained in:
15
nginx.conf
15
nginx.conf
@@ -115,6 +115,21 @@ ldap_server fet {
|
||||
require valid_user;
|
||||
}
|
||||
resolver 127.0.0.11 valid=30s; # use the docker resolver as a default
|
||||
|
||||
server {
|
||||
listen 127.0.0.1:8999;
|
||||
|
||||
# Increase the body buffer size, to ensure the internal POSTs can always
|
||||
# parse the full POST contents into memory.
|
||||
client_body_buffer_size 128k;
|
||||
client_max_body_size 128k;
|
||||
|
||||
location / {
|
||||
content_by_lua_block {
|
||||
auto_ssl:hook_server()
|
||||
}
|
||||
}
|
||||
}
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
|
||||
# Don't reveal OpenResty version to clients.
|
||||
|
||||
Reference in New Issue
Block a user