diff --git a/etc/config.php b/etc/config.php index 503474d..d094ee4 100644 --- a/etc/config.php +++ b/etc/config.php @@ -42,8 +42,8 @@ $settings = array( "import_file" => 'board.json', // the basename of the file to import messages from if needed "work_dir" => '/var/opt/endboard/', // the directory where the two files above are kept. Also where you will find the admin token to set the password. // this dir should be owned by the webserver (usually www-data), and it should not be in the webroot. - "max_post_global" => 100000 // Maximum posts that the board will take in the defined timeframe. Set to 0 to disable. - "max_post_ip" => 400000 // Maximum posts per ip that the board will take in the defined timeframe. Set to 0 to disable. + "max_post_global" => 1000, // Maximum posts that the board will take in the defined timeframe. Set to 0 to disable. + "max_post_ip" => 400, // Maximum posts per ip that the board will take in the defined timeframe. Set to 0 to disable. // If you run your service on tor only, you can set it to zero as well, and only use global. "max_post_bot" => 20000, // Maximum posts for bots that the board will take in the defined timeframe. Set to 0 to disable. "max_post_timeframe" => 100, // The time in minutes that is checked to determine max posts diff --git a/opt/display_tools.php b/opt/display_tools.php index 5571e51..172602f 100644 --- a/opt/display_tools.php +++ b/opt/display_tools.php @@ -593,17 +593,21 @@ function print_footer($left_section, $mid_section, $right_section) function print_header($css_file) { - header( 'Content-Type: text/html; charset=utf-8'); - header( 'X-Frame-Options: DENY', FALSE); - header( 'HTTP Cross-Origin-Opener-Policy: same-origin', FALSE); - header( 'Cross-Origin-Resource-Policy: same-site', FALSE); - header( 'Permissions-Policy: geolocation=(), camera=(), microphone=()', - FALSE); - header( 'Permissions-Policy: interest-cohort=()', FALSE); - header( 'Server: webserver', FALSE); - header( 'X-DNS-Prefetch-Control: off', FALSE); - header( 'Cache-Control: no-cache', FALSE); - header( 'Pragma: no-cache', FALSE); +// header( 'Content-Type: text/html; charset=utf-8'); +// header( 'X-Frame-Options: DENY', FALSE); +// header( 'HTTP Cross-Origin-Opener-Policy: same-origin', FALSE); +// header( 'Cross-Origin-Resource-Policy: same-site', FALSE); +// header( 'Permissions-Policy: geolocation=(), camera=(), microphone=()', +// FALSE); +// header( 'Permissions-Policy: interest-cohort=()', FALSE); +// header( 'Server: webserver', FALSE); +// header( 'X-DNS-Prefetch-Control: off', FALSE); +// header( 'Cache-Control: no-cache', FALSE); +// header( 'Pragma: no-cache', FALSE); + +// nginx throws an error with those, and gives back 502 - bad gateway +// does not happen with other versions, and also not in the desktop +// version of the page - rather strange if ($css_file == 'no_file') { $html_string = '
'; diff --git a/srv/mob/index.php b/srv/mob/index.php index 8d5f2d3..5e5da4c 100644 --- a/srv/mob/index.php +++ b/srv/mob/index.php @@ -455,6 +455,8 @@ function check_org_id_exists($db, $sub, $org_id) // up to six parameters, which are concantenated and hashed. function check_portal($db, $settings, $ip) { + + return; if ( ($settings['enable_portal'] != TRUE) ) { return; @@ -2321,7 +2323,7 @@ switch($mode) { . '