-
-
Notifications
You must be signed in to change notification settings - Fork 173
Improvement of Timezone Handling and Caddy Log Formatting #624
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
base: main
Are you sure you want to change the base?
Conversation
|
Please take a look at the following file: There is on line one the word "debug". I just let it the way it was and didnt find any reference in the caddy logs for that. |
|
Whoops, I should have commented here 😃
|
|
@jaydrogers I made a mistake on this one. I declared TZ to be available on all images, but that is not true 🤦♂️ You can use TZ only on debian based images. On alpine images, tzdata would have to be installed. Let me know, how should I progress on this one. |
|
I reverted recent changes to Dockerfiles that attempted to set the timezone via the Reason for RevertThe Impact & New StandardAlpine Images:
Debian Images:
New Feature for Log ClarityTo improve log readability, especially for users remaining on
|
|
How much space gets added to Alpine if we include tzdata by default? |
|
To be honest I didnt try, because you said you didnt want any packages installed, that would possibly make the images bigger, wich is understandable. |
|
No problem. I can take a look if needed. I appreciate your efforts on this 👍 |
|
Please also take a look at this file: On the first line there is the word debug wich isnt in any other files and I couldnt find anything on the caddy documentation about it. It might be a typo. |
Description:
It has been possible to set container timezones via the
TZenvironment variable without installingtzdata. To improve visibility and usability, I have explicitly added thisENVvariable to all Dockerfiles and updated the documentation.FrankenPHP & Caddy Logging:
Currently, the FrankenPHP images (using Caddy) output logs in UTC by default, which can complicate debugging. I have adjusted the Caddy configuration to:
TZvariable in log outputs.CADDY_LOG_DATETIME_FORMAT, allowing for custom timestamp formats supported by Caddy.Backward Compatibility:
These changes are fully backward compatible. Default values are in place, ensuring that if
TZorCADDY_LOG_DATETIME_FORMATare not set, the behavior remains exactly as it is now.Examples
docker-compose.yml
Running directly in your terminal: