Commit Graph

27 Commits

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