Commit Graph

27 Commits

Author SHA1 Message Date
crapStone
7e80ade24b Add config file and rework cli parsing and passing of config values (#263)
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/263
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: crapStone <me@crapstone.dev>
Co-committed-by: crapStone <me@crapstone.dev>
2024-02-15 16:08:29 +00:00
6543
1b6ea4b6e1 use same version var on cli app as header 2023-02-10 04:33:28 +01:00
6543
7b35a192bf Add cert store option based on sqlite3, mysql & postgres (#173)
Deprecate **pogreb**!

close #169

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/173
2023-02-10 03:00:14 +00:00
6543
35b35c5d67 Add integration tests (#86)
close #82
close #32

make sure we dont get regressions again ... as we currently have in **main**

followups:
 - create a DNS subdomayn specific to redirect to mock url ...

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/86
Reviewed-by: crapStone <crapstone@noreply.codeberg.org>
2022-06-11 23:17:43 +02:00
6543
f5d0dc7447 Add pipeline (#65)
close #54

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/65
Reviewed-by: Andreas Shimokawa <ashimokawa@noreply.codeberg.org>
2022-03-27 21:54:06 +02:00
6543
ac93a5661c start using urfave/cli 2021-12-05 14:48:44 +01:00
6543
bdc2d0c259 dont access global vars inject them 2021-12-05 14:48:41 +01:00
Moritz Marquardt
76e5d8e77c Add TODOs 2021-12-05 14:48:37 +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
f29ebc57d3 Handle certificate errors with mock certificates (fixes #10) 2021-12-01 21:46:52 +01:00
fnetx
73da80adc1 Switch GiteaApiToken from byte to string 2021-11-26 17:10:31 +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
e800d2110e gofmt -s -w *.go */*.go 2021-11-25 16:12:28 +01:00
Moritz Marquardt
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
Moritz Marquardt
c99dbb34ce Implement HTTP-01 challenge 2021-11-20 21:10:46 +01:00
Moritz Marquardt
77321eb181 Make ACME account persistent & fix issues with certificate resolution 2021-11-20 18:23:09 +01:00
Moritz Marquardt
2aaac2c52b Completely refactor certificates and implement renewal & cleanup 2021-11-20 15:30:58 +01:00
Moritz Marquardt
4494023086 Implement simple version of automatic certificate issuance 2021-07-13 15:45:28 +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
13b386d442 Switch to HTTPS using a self-signed certificate 2021-07-09 01:15:42 +02:00
Moritz Marquardt
3e9aaa8a4a Make settings configurable 2021-07-08 23:08:50 +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
241f7a57ec Split code into multiple files 2021-03-17 00:34:31 +01:00
Moritz Marquardt
1a80684e79 Clean up, fix bugs, implement caching & use API 2021-03-17 00:24:34 +01:00
Moritz Marquardt
0756993f7e Implement first version without custom domains, TLS and caching 2021-03-16 20:22:06 +01:00