dynamic client_max_body_size

pull/12/head
Szekeres Bálint 7 years ago
parent 71ad4fb493
commit f02d936657

@ -121,7 +121,7 @@ main .file .btn-clipboard {
main .file .clipboard-success {
font-size: 0.8rem;
color: #4BB543;
color: #28a745;
font-weight: 700;
}
@ -206,6 +206,10 @@ tooltip tip-tip._small {
/*
ADS
*/
.adsbygoogle-container {
overflow: hidden;
}
.adsbygoogle-container .adsbygoogle {
display: block;
height: 600px;

@ -37,6 +37,7 @@
pid: '/run/nginx.pid',
access_log: '/var/log/nginx/access.log',
error_log: '/var/log/nginx/error.log',
client_max_body_size: 16,
gzip: true,
server_tokens: false,
log_not_found: false,

@ -175,6 +175,15 @@
<label class="form-label"><code>error_log</code></label>
<input type="text" class="form-control form-control-sm" ng-model="data.error_log">
</div>
<div class="form-group">
<label class="form-label"><code>client_max_body_size</code></label>
<div class="input-group">
<input type="number" min="0" step="1" class="form-control form-control-sm" ng-model="data.client_max_body_size">
<div class="input-group-append">
<div class="input-group-text">MB</div>
</div>
</div>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" id="gzip" ng-model="data.gzip">
<label class="form-check-label" for="gzip">

@ -17,7 +17,7 @@ http {
server_tokens off;</span><span ng-if="!data.log_not_found">
log_not_found off;</span>
client_max_body_size 50M;
client_max_body_size {{ data.client_max_body_size }}M;
client_body_buffer_size 128k;
# mime

Loading…
Cancel
Save