Increase max upload size.
This commit is contained in:
@@ -21,6 +21,7 @@ job "wordpress" {
|
|||||||
ports = ["http"]
|
ports = ["http"]
|
||||||
volumes = [
|
volumes = [
|
||||||
"/data/sync/wordpress:/var/www/html",
|
"/data/sync/wordpress:/var/www/html",
|
||||||
|
"local/php-custom.ini:/usr/local/etc/php/conf.d/php-custom.ini",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,6 +45,15 @@ job "wordpress" {
|
|||||||
EOH
|
EOH
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template {
|
||||||
|
destination = "local/php-custom.ini"
|
||||||
|
data = <<EOH
|
||||||
|
upload_max_filesize = 100M
|
||||||
|
post_max_size = 100M
|
||||||
|
max_execution_time = 600
|
||||||
|
EOH
|
||||||
|
}
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
cpu = 6000
|
cpu = 6000
|
||||||
memory = 1024
|
memory = 1024
|
||||||
|
|||||||
Reference in New Issue
Block a user