Skip to content

feat: add logrotate for OpenResty access/error logs#64

Merged
matthias-wright merged 1 commit into
mainfrom
m/openresty-log-rotation
Jul 10, 2026
Merged

feat: add logrotate for OpenResty access/error logs#64
matthias-wright merged 1 commit into
mainfrom
m/openresty-log-rotation

Conversation

@matthias-wright

Copy link
Copy Markdown
Contributor

The openresty package ships no logrotate config, so access/error logs grew unbounded.

Changes

  • New templates/logrotate-openresty: rotate daily or at 100MB, keep 14 generations, gzip (with delaycompress), then signal USR1 so OpenResty reopens its log files
  • deploy_nginx() installs it to /etc/logrotate.d/openresty, so both fresh deploys and redeploys pick it up

@matthias-wright matthias-wright merged commit f404416 into main Jul 10, 2026
1 check passed
@matthias-wright matthias-wright deleted the m/openresty-log-rotation branch July 10, 2026 13:45
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.

1 participant