Explorar o código

Merge branch 'master-htaccess' of https://github.com/cryptomilk/PrivateBin into cryptomilk-master-htaccess

El RIDO %!s(int64=6) %!d(string=hai) anos
pai
achega
091dc14074
Modificáronse 2 ficheiros con 9 adicións e 1 borrados
  1. 8 0
      .htaccess.disabled
  2. 1 1
      INSTALL.md

+ 8 - 0
.htaccess.disabled

@@ -2,3 +2,11 @@ RewriteEngine on
 RewriteCond !%{HTTP_USER_AGENT} "Let's Encrypt validation server" [NC]
 RewriteCond !%{HTTP_USER_AGENT} "Let's Encrypt validation server" [NC]
 RewriteCond %{HTTP_USER_AGENT} ^.*(bot|spider|crawl|https?://|WhatsApp|SkypeUriPreview|facebookexternalhit) [NC]
 RewriteCond %{HTTP_USER_AGENT} ^.*(bot|spider|crawl|https?://|WhatsApp|SkypeUriPreview|facebookexternalhit) [NC]
 RewriteRule .* - [R=403,L]
 RewriteRule .* - [R=403,L]
+
+<IfModule mod_php7.c>
+php_value max_execution_time 30
+php_value post_max_size 10M
+php_value upload_max_size 10M
+php_value upload_max_filesize 10M
+php_value max_file_uploads 100
+</IfModule>

+ 1 - 1
INSTALL.md

@@ -139,7 +139,7 @@ For reference or if you want to create the table schema for yourself to avoid ha
 ```sql
 ```sql
 CREATE TABLE prefix_paste (
 CREATE TABLE prefix_paste (
     dataid CHAR(16) NOT NULL,
     dataid CHAR(16) NOT NULL,
-    data BLOB,
+    data MEDIUMBLOB,
     postdate INT,
     postdate INT,
     expiredate INT,
     expiredate INT,
     opendiscussion INT,
     opendiscussion INT,