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

Correct caddy PHP_VALUE value as it doesn't support \n #575

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

danny6167
Copy link
Member

Line breaks in environment variables in caddy fpm configs don't support the \n notation.

This was causing PHP to set upload_max_filesize to 100M \n post_max_size = 100M.

This lead to upload_max_filesize being evaluated to an invalid value that causes file uploads (such as egg imports) to fail due to the size being above upload_max_filesize.

This PR replaces the \n with an actual newline.

I've confirmed this works in a fresh testing environment.

@VasilisThePikachu
Copy link

VasilisThePikachu commented Mar 8, 2024

Just tested this myself and it works correctly

insert github approved

@hexlocation
Copy link

+1 had been diagnosing this issue for hours, this fixed it :3

@matthewpi matthewpi merged commit dc9ddb6 into pterodactyl:master Apr 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants