Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add uploads.ini script for PHP directives #4

Merged
merged 5 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions imageroot/actions/create-module/10uploads.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

#
# Copyright (C) 2023 Nethesis S.r.l.
# SPDX-License-Identifier: GPL-3.0-or-later
#

# This script is used to create a uploads.ini fro php directives

mkdir -vp config
cat <<EOF > config/uploads.ini
memory_limit=512M
upload_max_filesize=256M
post_max_size =256M
max_execution_time=600
max_input_time=600
max_file_uploads=50
EOF
2 changes: 1 addition & 1 deletion imageroot/etc/state-include.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@


state/wordpress.sql
state/config/uploads.ini
volumes/wordpress-app

1 change: 1 addition & 0 deletions imageroot/systemd/user/wordpress-app.service
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/wordpress-app.pid \
--cidfile %t/wordpress-app.ctr-id --cgroups=no-conmon \
--pod-id-file %t/wordpress.pod-id --replace -d --name wordpress-app \
--volume wordpress-app:/var/www/html/:Z \
--volume ./config/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:Z \
--env=WORDPRESS_* \
--env WORDPRESS_DB_TYPE="mysql" \
--env WORDPRESS_DB_HOST=127.0.0.1 \
Expand Down
Loading