mirror of
https://github.com/alpkeskin/rota.git
synced 2026-04-26 04:05:59 +03:00
[PR #7] [MERGED] feat(proxy): Add support for a cert storage #18
Labels
No labels
bug
bug
bug
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rota#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/alpkeskin/rota/pull/7
Author: @Fijxu
Created: 1/12/2025
Status: ✅ Merged
Merged: 1/13/2025
Merged by: @alpkeskin
Base:
main← Head:cert-storage📝 Commits (1)
ef0b9a6feat(proxy): Add support for a cert storage📊 Changes
2 files changed (+38 additions, -0 deletions)
View changed files
➕
internal/proxy/cert_storage.go(+37 -0)📝
internal/proxy/proxy.go(+1 -0)📄 Description
When doing a lot of requests using rota, the CPU usage was insanely high, this is due to goproxy generating a new certificate on each request for the domain requested.
To solve this I just implemented this simple example from the goproxy repo: https://github.com/elazarl/goproxy/tree/master/examples/certstorage
References: https://github.com/elazarl/goproxy/issues/430
Feel free to close it if you want to implement it in your own way. You can try it by pulling https://git.nadeko.net/Fijxu/-/packages/container/rota/cert-storage (
docker pull git.nadeko.net/fijxu/rota:cert-storage)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.