Skip to content

Commit

Permalink
lighten up
Browse files Browse the repository at this point in the history
  • Loading branch information
batonac committed Sep 19, 2024
1 parent 7d7f805 commit 0a0bbd5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
4 changes: 2 additions & 2 deletions conf/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

servers {
timeouts {
read_body 10s
read_header 10s
read_body 100s
read_header 100s
write 100s
idle 100s
}
Expand Down
6 changes: 0 additions & 6 deletions mu-plugins/force-200-status.php

This file was deleted.

14 changes: 14 additions & 0 deletions mu-plugins/nonce.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/*
Plugin Name: Extend Nonce Lifetime
Plugin URI: https://avu.nu/
Description: Extends the default nonce lifetime to 60 days.
Version: 1.0
Author: Avunu LLC
Author URI: https://avu.nu/
*/

function custom_nonce_lifetime() {
return 86400 * 60; // 60 days in minutes
}
add_filter( 'nonce_life', 'custom_nonce_lifetime' );
11 changes: 7 additions & 4 deletions wordpress.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,16 @@ let
exif
fileinfo
filter
imagick
# imagick
intl
mbstring
openssl
pdo
pdo_mysql
session
simplexml
tokenizer
xmlwriter
zip
zlib

Expand Down Expand Up @@ -115,10 +118,10 @@ pkgs.dockerTools.buildLayeredImage {
phpBuild
pkgs.busybox
pkgs.cacert
pkgs.ghostscript
pkgs.imagemagick
# pkgs.ghostscript
# pkgs.imagemagick
pkgs.mysql.client
pkgs.vips
# pkgs.vips
pkgs.zip
wp-cli
];
Expand Down

0 comments on commit 0a0bbd5

Please sign in to comment.