feat: add Docker support and CI workflow

- Created a Dockerfile to build and deploy the application using a multi-stage build process.
- Added a GitHub Actions workflow to automatically build and publish the Docker image to GitHub Container Registry on pushes to the main branch.
- Updated go.mod and go.sum to reflect dependency upgrades and changes.
- Modified the RSS generator to extend the photo expiration time from 10 minutes to 12 hours.
- Updated rate limiter configuration to allow for environment variable customization.
This commit is contained in:
2026-05-08 13:54:04 +03:30
parent 0686614c54
commit bc2b38a3b0
6 changed files with 142 additions and 31 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ func (r *RSSGenerator) messageToItem(msg tg.MessageClass, channelId string) (*RS
}
if err = r.messageHasPhoto(message); err == nil {
enclosurePhotoExpiresAt := time.Now().Add(10 * time.Minute)
enclosurePhotoExpiresAt := time.Now().Add(12 * time.Hour) // TODO: get from env
enclosurePhotoSignature := r.hmacGenerator.GenerateMAC(message.GetID(), enclosurePhotoExpiresAt)
urlParams := fmt.Sprintf(
"?exp=%d&sig=%s",