Commit Graph

29 Commits

Author SHA1 Message Date
6543
cc32bab31f Enhance joinURL and return error on gitea client on start instead while running (#88)
Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/88
2022-06-13 20:07:32 +02:00
6543
02bd942b04 Move gitea api calls in own "client" package (#78)
continue #75
close #16
- fix regression (from #34) _thanks to @crystal_
- create own gitea client package
- more logging
- add mock impl of CertDB

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: crystal <crystal@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/78
Reviewed-by: crapStone <crapstone@noreply.codeberg.org>
2022-06-11 23:02:06 +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
Moritz Marquardt
a5504acb0e Fix cert removal command (#50)
The command was using parts from the old os.Args approach and parts from the cli package, and together they didn't work at all. This fixes that and makes the command `pages-server certs remove [domain...]`.

Co-authored-by: Moritz Marquardt <git@momar.de>
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/50
Co-authored-by: Moritz Marquardt <momar@noreply.codeberg.org>
Co-committed-by: Moritz Marquardt <momar@noreply.codeberg.org>
2022-03-20 23:18:00 +01:00
Moritz Marquardt
adfc96ab94
Add --verbose flag and hide debug messages by default 2021-12-10 14:32:14 +01:00
Moritz Marquardt
73fa2da646
Update default to raw.codeberg.page & improve documentation on custom domains 2021-12-10 14:31:58 +01:00
6543
aa0638903a
fix argument check and some nits 2021-12-06 16:14:41 +01:00
6543
2f6b280fce
meaningfull var names 2021-12-05 19:02:26 +01:00
6543
a0534f1fde
make MaintainCertDB able to cancel 2021-12-05 18:26:54 +01:00
6543
e85f21ed2e
some renames 2021-12-05 18:20:38 +01:00
6543
a0e0d2d335
make certdb maintain go routine a own func 2021-12-05 18:20:37 +01:00
6543
de439f9bec
wrap cert db and make sync gracefull 2021-12-05 18:20:36 +01:00
6543
11fa729686
mv acme config setup into own func 2021-12-05 16:33:56 +01:00
6543
de4706bf58
rm 2rm 2021-12-05 15:53:46 +01:00
6543
76c867cfca
move "http acme server setup" into own func 2021-12-05 15:45:22 +01:00
6543
ccada3e6df
split cert func to related packages 2021-12-05 15:21:05 +01:00
6543
bb6f28fe57
move setup of fastServer into own func 2021-12-05 15:09:21 +01:00
6543
b3830e979c
inject all cache 2021-12-05 15:02:44 +01:00
6543
2b49039252
add todo 2021-12-05 14:48:56 +01:00
6543
b28204a468
acme-api -> acme-api-endpoint 2021-12-05 14:48:55 +01:00
6543
97d4ea9d6b
main-domain-suffix -> pages-domain 2021-12-05 14:48:54 +01:00
6543
5b2e91a37a
REDIRECT_RAW_INFO -> RAW_INFO_PAGE 2021-12-05 14:48:52 +01:00
6543
f35c4d0f66
make mem cache an interface and inject 2021-12-05 14:48:51 +01:00
6543
0bc38b668f
db Sync on exit 2021-12-05 14:48:50 +01:00
6543
5ca5020cfa
open key-database deterministic 2021-12-05 14:48:49 +01:00
6543
690879440a
move helper func in related packages 2021-12-05 14:48:47 +01:00
6543
5b81a8b8bc
remove os.Getenv() usage 2021-12-05 14:48:46 +01:00
6543
35e08d2252
remove EnvOr use flags 2021-12-05 14:48:45 +01:00
6543
ac93a5661c
start using urfave/cli 2021-12-05 14:48:44 +01:00