diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-04-27 14:02:53 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-04-27 14:05:04 -0400 |
| commit | 1d9fa34fa84cc125c68ab486d8bbc2dbe7a51f0e (patch) | |
| tree | 806543b40d615e1bf57d4a83fdba88bb8008e088 /yeetfile.js | |
| parent | 10e176a023ee1a4955160c86f0dc71a435bdf866 (diff) | |
| download | x-1d9fa34fa84cc125c68ab486d8bbc2dbe7a51f0e.tar.xz x-1d9fa34fa84cc125c68ab486d8bbc2dbe7a51f0e.zip | |
feat(httpdebug): quiet mode and function as a systemd service
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'yeetfile.js')
| -rw-r--r-- | yeetfile.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/yeetfile.js b/yeetfile.js index 946e764..87fa4c7 100644 --- a/yeetfile.js +++ b/yeetfile.js @@ -28,6 +28,32 @@ const pkgs = []; [deb, rpm].forEach((method) => { pkgs.push( method.build({ + name: "httpdebug", + description: "HTTP protocol debugger", + homepage: "https://within.website", + license: "CC0", + goarch, + + documentation: { + LICENSE: "LICENSE", + }, + + configFiles: { + "cmd/httpdebug/httpdebug.env": "/etc/within.website/x/httpdebug.env", + }, + + build: ({ bin, systemd }) => { + $`go build -o ${bin}/httpdebug -ldflags '-s -w -extldflags "-static" -X "within.website/x.Version=${git.tag()}"' ./cmd/httpdebug`; + file.install( + "./cmd/httpdebug/httpdebug.service", + `${systemd}/httpdebug.service`, + ); + }, + }), + ); + + pkgs.push( + method.build({ name: "ingressd", description: "ingress for my homelab", homepage: "https://within.website", |
