Two adjustments from the PR review. Stripe placeholders (STRIPE_KEY, STRIPE_SECRET, STRIPE_WEBHOOK_SECRET, and the eight price IDs) only matter when SELF_HOSTED=false. The Docker stack defaults to SELF_HOSTED=true, so keeping the block in .env.docker.example just adds noise for first-time contributors. upload_max_filesize and post_max_size go from 100M to 1G in both php.dev.ini and php.prod.ini to accept full-length video uploads. Bumping nginx client_max_body_size to match — otherwise the proxy would cut the request off before PHP ever sees it.
20 lines
523 B
INI
20 lines
523 B
INI
; TryPost — PHP settings for production.
|
|
memory_limit = 256M
|
|
upload_max_filesize = 1G
|
|
post_max_size = 1G
|
|
max_execution_time = 60
|
|
max_input_vars = 5000
|
|
|
|
; OpCache hardened for production: no timestamp checks, larger interned-string buffer.
|
|
opcache.enable = 1
|
|
opcache.memory_consumption = 192
|
|
opcache.max_accelerated_files = 20000
|
|
opcache.validate_timestamps = 0
|
|
opcache.interned_strings_buffer = 16
|
|
|
|
; Security
|
|
expose_php = Off
|
|
display_errors = Off
|
|
display_startup_errors = Off
|
|
log_errors = On
|
|
error_log = /proc/self/fd/2
|