1
0
mirror of https://github.com/taigrr/pastebin synced 2026-04-05 02:42:30 -07:00

49 Commits

Author SHA1 Message Date
857557b4b4 Update copyright year and fix LICENSE formatting
Updated copyright year and corrected formatting in LICENSE file.
2026-03-09 02:06:47 -04:00
c8288f5a77 refactor: apply Go standards, update deps, rename UUID to PasteID v1.0.1 2026-03-09 06:02:13 +00:00
4038172e78 fix: improve error handling, remove any type, add edge case protections 2026-03-09 06:01:08 +00:00
21bc47697b feat: add graceful shutdown, health endpoint, and improved client API 2026-03-09 06:00:16 +00:00
ed52f9102a refactor(config): migrate to jety for config parsing 2026-03-09 05:58:57 +00:00
46562efafb Merge pull request #2 from taigrr/cd/ci-and-tests
ci: add CI/CD workflows, GoReleaser config, and extended tests
v1.0.0
2026-03-09 01:53:01 -04:00
0ca287cac2 test: extend test coverage for server, config, and utils 2026-03-09 05:51:36 +00:00
db833cd37a ci: add GoReleaser Pro release workflow on tag push 2026-03-09 05:50:33 +00:00
7dbe823524 build: add GoReleaser Pro config with multi-arch Docker support 2026-03-09 05:50:31 +00:00
ffa8738946 ci: add Go test and lint workflow 2026-03-09 05:50:29 +00:00
ca6cc45796 Merge pull request #1 from taigrr/cd/cql-review
refactor: Go Code Quality Loop (CQL) review
2026-03-09 01:47:22 -04:00
7b98318fb6 chore: standards, idioms, and CI cleanup
- Update .drone.yml to use Go 1.26 image and modern test commands
- Remove outdated release script (referenced go.rice and prologic)
- Remove Jekyll config (_config.yml)
- Update README with correct module path and modern CLI flags
- Update .dockerignore to exclude unnecessary files
- All checks pass: go build, go vet, staticcheck, go test -race, goimports
2026-03-09 05:46:16 +00:00
02d3bc9aa5 fix: improve correctness and safety
- Add MaxBytesReader to limit paste body size (1 MB)
- Buffer template output before writing to prevent partial responses
- Add paste ID collision retry logic
- Update Dockerfile to use modern multi-stage build (remove go.rice)
- Update Makefile to use direct go build commands
- Add test for oversized paste rejection
2026-03-09 05:45:03 +00:00
25f66bb589 feat: modernize codebase and complete API surface
- Update module path from prologic/pastebin to taigrr/pastebin
- Replace go.rice with stdlib embed for templates and static assets
- Replace httprouter with stdlib net/http ServeMux (Go 1.22+)
- Replace namsral/flag with cobra + fang for CLI argument parsing
- Fix inverted TLS insecure logic in client (was negating the flag)
- Close HTTP response body in client
- Use base64 URLEncoding instead of StdEncoding for paste IDs
- Add comprehensive handler tests for all endpoints
- Add client package tests
- Add utils tests for RandomString
- Remove templates.go (replaced by embed)
- Remove unused dependencies (go-metrics, stats, logger, httprouter, go.rice)
2026-03-09 05:44:08 +00:00
50e3bf0242 Update README.md with new badge links 2026-03-09 01:39:37 -04:00
3c15e4041a Update README to remove Sourcegraph badge
Removed Sourcegraph badge from README.
2026-03-09 01:39:04 -04:00
c52f7b6050 simplify random string generator 2022-06-13 02:35:45 -07:00
fabc69c1f7 update go deps 2022-06-13 02:25:25 -07:00
1d522cc054 Add delete functionality (#13) 2021-04-21 07:25:57 +10:00
12afabdad2 Enables returning url for "Accept: text/plain" (#14)
* Update dependencies and go compile target version

* Adds deletion support to the server

* Add form around delete button

* Add support for returning the url in curl

Co-authored-by: James Mills <prologic@shortcircuit.net.au>
2021-04-20 23:22:10 +10:00
5ade7a0642 Fix pb utility (#16)
* Update dependencies and go compile target version

* Adds deletion support to the server

* Add form around delete button

* Add support for returning the url in curl

* remove -config option for now

* Upload as form value instead of file

* remove dependencies from go mod

* update to README re: new curl usage
2021-04-20 23:20:39 +10:00
1c454dc629 Update dependencies and go compile target version (#10) 2021-04-13 12:45:44 +10:00
c01a326d26 Update .gitignore 2021-04-09 21:41:50 +10:00
93cce3bc87 Fix paste handler and uuid collision (Fixes #9) 2021-04-09 21:35:57 +10:00
Aleksey Lobanov
10645aa3a5 docker: Multistage Docker build (#6)
Reducing image size approximately from 341MB to 16MB
2020-12-06 20:54:16 +10:00
Tai Groot
ead67c221f updates dockerfile to work with latest golang, adds .dockerignore, fixes CI (#4)
* adds support for https://github.com/golang/go/issues/32479

* updated dockerfile to work with latest golang, added .dockerignore
2020-10-15 16:41:45 +10:00
James Mills
f72073e6ef Convert tabs to spaces when displaying 2019-07-11 22:59:40 +10:00
James Mills
d6539016d4 Fix Drone CI config 2019-07-11 22:42:44 +10:00
James Mills
648e899e9f Add Drone CI config 2019-07-11 22:26:21 +10:00
James Mills
434b89e3cc Fix install instructions 2019-07-11 22:17:05 +10:00
James Mills
d9f9e77b6b Improve README 2019-07-11 22:13:25 +10:00
James Mills
fd6a5615f0 Fix Makefile 2019-07-11 22:11:33 +10:00
James Mills
5cab47c0e5 Switch to Go11Modules 2019-07-11 22:11:33 +10:00
James Mills
eaa9f9d205 Set theme jekyll-theme-hacker 2019-04-13 13:50:06 +10:00
e81328c53e Fixed POST handler 2018-05-17 14:51:39 -07:00
25bcbac05f Fixed LICENSE 2017-07-11 01:03:54 -07:00
4471d00714 Updated README 2017-07-09 13:36:19 -07:00
acf25c9389 Updated README 2017-07-09 13:17:16 -07:00
f8b5ce3e9c Shorten the view URI to /p/... 2017-07-09 11:25:50 -07:00
52802aff70 Removed some cruft 2017-07-09 10:18:41 -07:00
0069622991 Fixed index template name 2017-07-09 10:09:10 -07:00
b14f88c8d0 Ooops 2017-07-09 01:58:01 -07:00
3e081f0aa0 Refacted, new look and raw download feature 2017-07-09 01:57:21 -07:00
47ef82966c Fixed config tests 2017-07-06 22:42:04 -07:00
89269b7aad Added metrics, stats and logging 2017-07-06 01:33:31 -07:00
84159c33bf Add a CLI tool for easily interacting with pastebin 2017-07-04 01:37:59 -07:00
61b79025e8 Support content negotation for text/html and text/plain 2017-07-03 01:46:08 -07:00
43a32970d3 Repsect -expiry configuration 2017-07-02 23:57:32 -07:00
3c42d7d878 Initial Commit 2017-07-02 23:42:34 -07:00