Add Go-based static file server as nginx alternative - #25
Open
redhat-chai-bot wants to merge 1 commit into
Open
redhat-chai-bot wants to merge 1 commit into
redhat-chai-bot wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
go-static-server/image alongside the existingnginx/image. This is a pure-Go drop-in replacement for the nginx static file server used in PerfScale benchmarking workloads.What it does
:8080and HTTPS:8443error_page 405 =200behavior)/to128.htmlTLS_CERT/TLS_KEYenv varsImage design
embed.FS: Static files compiled into the binary — no filesystem dependency at runtimessl/gencert.go) — no private key material committed to the repoFiles added
go-static-server/main.go— Go server (~93 lines)go-static-server/go.modgo-static-server/generate_html.sh— generates the 15 static HTML filesgo-static-server/ssl/gencert.go— self-signed cert generatorgo-static-server/Dockerfile— multi-stage scratch buildgo-static-server/README.md— build/run/comparison documentationTesting
Built and verified in a workspace environment:
/,/1024.html,/65536.html→ 200 with correct sizes/→ 200 with TLS 1.3/128.html→ 200 (not 405)AI-generated. Review for accuracy.
@afcollins requested in Slack thread
Warning
Content scanning did not attest this change.
The scanner could not produce a verdict for the pushed content (
never_attempted), so it has not been checked for credentials or malware.Content scanning currently fails open, so this did not hold the change request for review — please review the diff with that in mind.