Commit Graph

36 Commits (cdc33b29a012e61b42f192d79f9486fa8e21b2ed)

Author SHA1 Message Date
wxiaoguang b41925cee3
Refactor CORS handler (#28587) 11 months ago
wxiaoguang 52fb936773
Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" (#25974) 1 year ago
wxiaoguang faa28b5a44
Move public asset files to the proper directory (#25907) 1 year ago
wxiaoguang a94a8d0ab1
Use standard HTTP library to serve files (#24693) 2 years ago
wxiaoguang 50a72e7a83
Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
wxiaoguang 78046e5137
Fix incorrect CORS failure detection logic (#23844) 2 years ago
wxiaoguang ce9dee5a1e
Introduce path Clean/Join helper functions (#23495) 2 years ago
Lunny Xiao b116418f05
Use CleanPath instead of path.Clean (#23371) 2 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 2 years ago
KN4CK3R 0e57ff7eee
Add generic set type (#21408) 2 years ago
wxiaoguang 87141b908d
Fix mime-type detection for HTTP server (#18370) 3 years ago
6543 54e9ee37a7
format with gofumpt (#18184) 3 years ago
wxiaoguang 5bf8d5445e
Refactor Router Logger (#17308) 3 years ago
Lunny Xiao effad26c0e
Improve assets handler middleware (#15961) 4 years ago
a1012112796 1e877613bf
add `/assets` as root dir of public files (#15219) 4 years ago
KN4CK3R a35a5b225c
Add ETag header (#15370) 4 years ago
a1012112796 f5b6dc9759
add 'fonts' into 'KnownPublicEntries' (#15188) 4 years ago
Lunny Xiao 0cd87d64ff
Update docs and comments to remove macaron (#14491) 4 years ago
Lunny Xiao d44f192d3e
When visit /favicon.ico but the static file is not exist return 404 but not continue to handle the route (#14211) 4 years ago
Lunny Xiao 19ae6439b0
Improve vfsgen to not unzip bindata files but send to browser directly (#7109) 4 years ago
silverwind 0615b668dc
HTTP cache rework and enable caching for storage assets (#13569) 4 years ago
Lunny Xiao c296f4fed6
Introduce go chi web framework as frontend of macaron, so that we can move routes from macaron to chi step by step (#7420) 4 years ago
6543 d7456106bf
fix go1.15 lint error in modules/public/public.go (#12707) 4 years ago
techknowlogick bd7d6a3d73
go1.15 (#12475) 4 years ago
silverwind 7761245d08
Move fomantic and jQuery to main webpack bundle (#11997) 4 years ago
silverwind e24ee48776
Add serviceworker.js to KnownPublicEntries (#11992) 4 years ago
silverwind 5180deb819
Send 404 immediately for known public requests (#11117) 5 years ago
zeripath 48abe41ea8
Generate Bindata iff TAGS="bindata" and not up-to-date (#10004) 5 years ago
Tamal Saha 171b359877 Use gitea forked macaron (#7933) 5 years ago
Lunny Xiao e503794371 remove unnecessary fmt on generate bindata (#7706) 5 years ago
Lunny Xiao 83b90e4199 Use vfsgen instead of go-bindata (#7080) 6 years ago
zeripath dd13327382 When redirecting clean the path to avoid redirecting to //www.othersite.com (#5669) 6 years ago
Morgan Bazalgette 17655cdf1b Enable caching on assets and avatars (#3376) 7 years ago
Thomas Boerger 78535fb08e Allow custom public files (#782) 8 years ago
Thomas Boerger 83ed234472 Integrate templates into bindata optionally (#314) 8 years ago
Thomas Boerger b6a95a8cb3 Integrate public as bindata optionally (#293) 8 years ago