Commit Graph

28 Commits

Author SHA1 Message Date
Moritz Marquardt
67a190f68a
Hotfix for #27: avoid slash before .html in GitHub compatibility redirects 2021-12-05 22:12:48 +01:00
Moritz Marquardt
51c79f512d Fix github-style non-.html URLs repeating the path twice
Issue was reported in https://codeberg.org/Codeberg/Community/issues/547#issuecomment-285075
2021-12-04 13:54:18 +01:00
Moritz Marquardt
57dce3b0c5 Add redirect for GitHub-style non-".html" paths & force remove index.html suffix
See https://codeberg.org/Codeberg/Community/issues/547 for more info
2021-12-02 20:35:43 +01:00
Moritz Marquardt
b6d7f5a6ee Change browser cache to 10 minutes to make bigger pages more performant 2021-12-02 20:35:33 +01:00
Moritz Marquardt
989d00832f
Fix (half) empty cache issue 2021-12-02 19:11:13 +01:00
Moritz Marquardt
26dd1591f6
Add www redirect for main domain 2021-12-02 00:00:00 +01:00
Moritz Marquardt
fedfa8def4
Remove REDIRECT_BROKEN_DNS page and instead use "Failed Dependency" error 2021-12-01 22:59:38 +01:00
Moritz Marquardt
6d520c2a40
Update error message for private repo access 2021-12-01 21:44:54 +01:00
fnetx
73da80adc1
Switch GiteaApiToken from byte to string 2021-11-26 17:10:31 +01:00
fnetx
455f65216c
Remove access token from canonicalLink as per momar 2021-11-26 17:03:58 +01:00
fnetx
772c17e214
Pass Gitea API token to requests
This allows to display repos that aren't fully public. Some users seem
to be very interested in not having their pages viewable, and it might
make even sense to avoid e.g. search engines to read them.
If set to some random user string, this could allow to set the
visibility at least to limited (so only logged users see the repo), and
should allow to view private repos in the future with another API token.
2021-11-26 04:19:24 +01:00
6543
f2bb6aa36f
fix comment 2021-11-25 16:18:28 +01:00
6543
e800d2110e
gofmt -s -w *.go */*.go 2021-11-25 16:12:28 +01:00
Moritz Marquardt
5ed8d0f129
Add clarification on cache & reduce default branch cache to 15 minutes 2021-11-24 19:09:37 +01:00
Moritz Marquardt
73c21d0195
Reduce file cache timeout as it doesn't seem to do much 2021-11-20 20:34:12 +01:00
Moritz Marquardt
fcccd6435a
Add EAB for ACME 2021-11-20 15:37:36 +01:00
Moritz Marquardt
2aaac2c52b
Completely refactor certificates and implement renewal & cleanup 2021-11-20 15:30:58 +01:00
Moritz Marquardt
33f7a5d0df
Commit all current changes before vacation... 2021-08-22 17:59:30 +02:00
Moritz Marquardt
7c70be21d7
Add HSTS & cipher suites, handle fallback cert errors & change default port to 443 2021-07-13 10:28:50 +02:00
Moritz Marquardt
0602811709
Add timing tests & fix caching 2021-07-13 10:28:06 +02:00
Moritz Marquardt
675e56ee98
Implement domain handling logic
Still lots of performance optimization required!
2021-07-09 01:22:22 +02:00
Moritz Marquardt
4bc1cd5f7b
Add file cache 2021-07-08 23:08:30 +02:00
Moritz Marquardt
2e0608c270
Fix redirects for pages repo 2021-03-19 21:33:57 +01:00
Moritz Marquardt
203e230905
Implement caching & limit concurrency 2021-03-19 20:58:53 +01:00
Moritz Marquardt
8ead10c82e
Implement SEO optimizations and improve error handling and branch detection 2021-03-19 20:30:08 +01:00
Moritz Marquardt
c4bae34b71
Add TODOs 2021-03-19 13:20:00 +01:00
Moritz Marquardt
cdd6727049
Fix error page not rendering & make it more beautiful 2021-03-17 01:16:57 +01:00
Moritz Marquardt
241f7a57ec
Split code into multiple files 2021-03-17 00:34:31 +01:00