Commit Graph

38 Commits

Author SHA1 Message Date
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
418dbb7315 Merge pull request 'Refactor Code' (#8) from 6543/codeberg-pages:refactor into main
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/8
2021-11-25 19:16:20 +01:00
a6da3eb5f0 ignore vendor/ folder 2021-11-25 16:19:04 +01:00
f2bb6aa36f fix comment 2021-11-25 16:18:28 +01:00
e800d2110e gofmt -s -w *.go */*.go 2021-11-25 16:12:28 +01:00
5ed8d0f129 Add clarification on cache & reduce default branch cache to 15 minutes v2.1 2021-11-24 19:09:37 +01:00
e5385be6da Fix iterator issue causing 100% CPU load 2021-11-24 19:08:34 +01:00
ce802734d4 Add build script & ignore files v2.0 2021-11-20 21:43:12 +01:00
eae4513b96 Fix timeout for HTTP-01, bug in HTTP challenge response & only count domains towards user limit after acquiring locks 2021-11-20 21:39:40 +01:00
f22cd6c4e0 Make it possible to disable rate limits 2021-11-20 21:12:28 +01:00
c99dbb34ce Implement HTTP-01 challenge 2021-11-20 21:10:46 +01:00
73c21d0195 Reduce file cache timeout as it doesn't seem to do much 2021-11-20 20:34:12 +01:00
b19a5ecc1d Switch back to Let's Encrypt again & implement renewal 2021-11-20 19:36:12 +01:00
77321eb181 Make ACME account persistent & fix issues with certificate resolution 2021-11-20 18:23:09 +01:00
fcccd6435a Add EAB for ACME 2021-11-20 15:37:36 +01:00
d1ed16c0f2 Update everything & add Justfile 2021-11-20 15:31:10 +01:00
2aaac2c52b Completely refactor certificates and implement renewal & cleanup 2021-11-20 15:30:58 +01:00
33f7a5d0df Commit all current changes before vacation... 2021-08-22 17:59:30 +02:00
4494023086 Implement simple version of automatic certificate issuance 2021-07-13 15:45:28 +02:00
7c70be21d7 Add HSTS & cipher suites, handle fallback cert errors & change default port to 443 2021-07-13 10:28:50 +02:00
0602811709 Add timing tests & fix caching 2021-07-13 10:28:06 +02:00
675e56ee98 Implement domain handling logic
Still lots of performance optimization required!
2021-07-09 01:22:22 +02:00
13b386d442 Switch to HTTPS using a self-signed certificate 2021-07-09 01:15:42 +02:00
373c13baee Update dependencies 2021-07-08 23:09:46 +02:00
f63bd1bb2f Add timing tests 2021-07-08 23:08:58 +02:00
3e9aaa8a4a Make settings configurable 2021-07-08 23:08:50 +02:00
4bc1cd5f7b Add file cache 2021-07-08 23:08:30 +02:00
e94bdb4ed3 Add screenshot of the SNI test script 2021-06-06 12:42:46 +02:00
b54f9df4c5 Add proof of concept for SNI-based routing through HAProxy 2021-06-06 12:29:53 +02:00
2e0608c270 Fix redirects for pages repo 2021-03-19 21:33:57 +01:00
203e230905 Implement caching & limit concurrency 2021-03-19 20:58:53 +01:00
8ead10c82e Implement SEO optimizations and improve error handling and branch detection 2021-03-19 20:30:08 +01:00
c4bae34b71 Add TODOs 2021-03-19 13:20:00 +01:00
44c41c7459 Release under EUPL v. 1.2 2021-03-17 01:21:50 +01:00
cdd6727049 Fix error page not rendering & make it more beautiful 2021-03-17 01:16:57 +01:00
241f7a57ec Split code into multiple files 2021-03-17 00:34:31 +01:00
1a80684e79 Clean up, fix bugs, implement caching & use API 2021-03-17 00:24:34 +01:00
0756993f7e Implement first version without custom domains, TLS and caching 2021-03-16 20:22:06 +01:00