Compare commits
2 Commits
0984db04e4
...
c7574ecb80
Author | SHA1 | Date | |
---|---|---|---|
c7574ecb80 | |||
71e2cf21be |
@ -22,6 +22,20 @@ http {
|
||||
root /var/www/html;
|
||||
index index.html index.htm;
|
||||
|
||||
# TCP optimizations
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
|
||||
# Gzip
|
||||
sendfile on;
|
||||
gzip on;
|
||||
gzip_disable "msie6";
|
||||
gzip_vary on;
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 8;
|
||||
gzip_buffers 16 64k;
|
||||
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
||||
|
||||
client_max_body_size 500M; # Will get replaced by the environment variable MAX_UPLOAD_SIZE
|
||||
|
||||
location /upload.php {
|
||||
@ -38,8 +52,12 @@ http {
|
||||
location / {
|
||||
expires 7d;
|
||||
|
||||
open_file_cache max=1000 inactive=60s;
|
||||
open_file_cache_valid 60s;
|
||||
open_file_cache_min_uses 1;
|
||||
open_file_cache_errors on;
|
||||
|
||||
# Serve the file directly from disk
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
}
|
||||
}
|
@ -93,7 +93,7 @@ try {
|
||||
$secret = $_POST['secret']; // The secret key
|
||||
$file = $_FILES['sharex']; // The uploaded file
|
||||
|
||||
// Page to show if someone visits the upload page
|
||||
// Page to show if someone visits the upload script
|
||||
if (!$secret && !$file) {
|
||||
returnJson(array(
|
||||
'status' => 'OK',
|
||||
|
Loading…
Reference in New Issue
Block a user