block access to the go /debug/pprof/ endpoint
This commit is contained in:
parent
0113b9a565
commit
aa5c7ff8b4
4 changed files with 15 additions and 3 deletions
|
@ -122,7 +122,11 @@ server {
|
|||
% elif 'redirect' in options:
|
||||
return ${options.get('mode', 308)} ${options['redirect']};
|
||||
% elif 'return' in options:
|
||||
return ${options.get('mode', 200)} '${options['return']}';
|
||||
% if options.get('content'):
|
||||
return ${options['return']} '${options['content']}';
|
||||
% else:
|
||||
return ${options['return']};
|
||||
% endif
|
||||
% elif 'root' in options:
|
||||
root ${options['root']};
|
||||
% elif 'alias' in options:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue