diff --git a/.env-github.example b/.env-github.example new file mode 100644 index 0000000..58b2467 --- /dev/null +++ b/.env-github.example @@ -0,0 +1,2 @@ +GITHUB_USERNAME=your-github-username +GITHUB_TOKEN=your-github-token \ No newline at end of file diff --git a/conf/php.ini b/conf/php.ini index a0e3d0c..f39752d 100644 --- a/conf/php.ini +++ b/conf/php.ini @@ -1,5 +1,5 @@ ; Memory limits -memory_limit = 512M +memory_limit = 1G max_execution_time = 300 max_input_time = 100 diff --git a/conf/wp-config.php b/conf/wp-config.php index f0d70f7..cf64128 100644 --- a/conf/wp-config.php +++ b/conf/wp-config.php @@ -35,6 +35,7 @@ define('WP_CACHE', true); define('WP_POST_REVISIONS', 5); define('EMPTY_TRASH_DAYS', 7); +define('WP_MEMORY_LIMIT', '1G'); /* Add any custom values between this line and the "stop editing" line. */ diff --git a/flake.lock b/flake.lock index 641a5f5..1b26b9a 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1726463316, - "narHash": "sha256-gI9kkaH0ZjakJOKrdjaI/VbaMEo9qBbSUl93DnU7f4c=", + "lastModified": 1727802920, + "narHash": "sha256-HP89HZOT0ReIbI7IJZJQoJgxvB2Tn28V6XS3MNKnfLs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "99dc8785f6a0adac95f5e2ab05cc2e1bf666d172", + "rev": "27e30d177e57d912d614c88c622dcfdb2e6e6515", "type": "github" }, "original": { diff --git a/scripts/build-and-push.sh b/scripts/build-and-push.sh index 984c799..908ab78 100755 --- a/scripts/build-and-push.sh +++ b/scripts/build-and-push.sh @@ -9,7 +9,7 @@ fi # Check if required environment variables are set if [ -z "$GITHUB_USERNAME" ] || [ -z "$GITHUB_TOKEN" ]; then - echo "Error: GITHUB_USERNAME and GITHUB_TOKEN must be set in .env file" + echo "Error: GITHUB_USERNAME and GITHUB_TOKEN must be set in .env-github file" exit 1 fi diff --git a/wordpress.nix b/wordpress.nix index b28f5f7..e4f3daf 100644 --- a/wordpress.nix +++ b/wordpress.nix @@ -58,6 +58,7 @@ let exif fileinfo filter + igbinary # imagick intl mbstring