6543
5753f7136d
Move acmeClient creation into own file & struct ( #179 )
...
get rid of gobal vars and make make functions with less args :)
tldr: collect funcs and create a own ACME client to manage that stuff
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/179
2023-02-11 02:29:08 +00:00
6543
fd643d15f0
Drop: pogreb support ( #175 )
...
followup of #173
close #95
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/175
2023-02-11 02:04:57 +00:00
6543
272c7ca76f
Fix xorm regressions by handle wildcard certs correctly ( #177 )
...
close #176
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/177
2023-02-11 01:26:21 +00:00
6543
d8d119b0b3
Fix Cache Bug ( #178 )
...
error io.EOF is gracefully end of file read.
so we don't need to cancel cache saving
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/178
2023-02-11 00:31:56 +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
2c2087953d
Add Integration test for custom domain redirect to another custom domain ( #172 )
...
address #155
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/172
2023-02-09 17:30:06 +00:00
6543
f7fad2a5ae
Integration Tests use https://codeberg.org/cb_pages_tests
2023-01-04 06:08:06 +01:00
6543
5e72753e91
ci: "docker-tag" use tags
2022-11-22 22:30:53 +01:00
6543
4565481643
refactor: finish use default const for defaultPagesBranch and defaultPagesRepo
2022-11-12 21:16:11 +01:00
6543
c827a28dd8
defaultPagesBranch
2022-11-12 21:13:13 +01:00
6543
aa90356f0a
use a const for defaultPagesRepo
2022-11-12 21:10:16 +01:00
6543
b6d0a04b21
refactor: rm not needed type conversion
2022-11-12 21:04:34 +01:00
6543
6c63b66ce4
Refactor split long functions ( #135 )
...
we have big functions that handle all stuff ... we should split this into smaler chuncks so we could test them seperate and make clear cuts in what happens where
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/135
2022-11-12 20:43:44 +01:00
6543
b9966487f6
switch to std http implementation instead of fasthttp ( #106 )
...
close #100
close #109
close #113
close #28
close #63
Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/106
2022-11-12 20:37:20 +01:00
6543
69eabb248a
CI publish next only on default branch
2022-11-12 00:23:45 +01:00
6543
8e67d28c4f
Add editorconfig, fix files and lint via ci
2022-11-11 23:51:45 +01:00
6543
91b54bef29
add newline
2022-11-07 23:09:41 +01:00
6543
b9e9f14209
use codeberg.org/6543/docker-images/golang_just
...
Signed-off-by: 6543 <6543@obermui.de >
2022-10-10 23:27:33 +02:00
6543
df2228b6d5
ci: let tag run pipeline
2022-10-10 23:25:21 +02:00
6543
392c6ae452
full-name
2022-08-12 07:02:24 +02:00
6543
88a217fbe6
docker images must be lowercase
2022-08-12 06:55:35 +02:00
6543
e06900d5e5
fix lint issue
2022-08-08 15:25:31 +02:00
6543
8207586a48
just fix bcaceda711
2022-07-15 21:39:42 +02:00
6543
bb8eb32ee2
make debug messages unique
2022-06-10 15:29:47 +02:00
6543
6f12f2a8e4
fix bug
2022-05-15 22:36:12 +02:00
6543
2dbc66d052
let golangci-lint have 5m to check
2022-05-10 18:14:28 +02:00
6543
1724d9fb2e
add "lint" to Justfile
2022-05-10 18:13:14 +02:00
6543
6af6523a0f
code format
2021-12-09 20:16:43 +01:00
6543
70c7065f76
fix #31
2021-12-09 19:32:30 +01:00
6543
aa0638903a
fix argument check and some nits
2021-12-06 16:14:41 +01:00
6543
196482da07
less panic
2021-12-05 23:21:55 +01:00
6543
5aae7c882f
Merge branch 'master' into refactoring
2021-12-05 22:50:46 +01:00
6543
a7bb3448a4
move more args of Upstream() to upstream Options
2021-12-05 19:53:23 +01:00
6543
2f6b280fce
meaningfull var names
2021-12-05 19:02:26 +01:00
6543
5fe51d8621
rm certDB helper and build in
2021-12-05 19:00:57 +01:00
6543
a0534f1fde
make MaintainCertDB able to cancel
2021-12-05 18:26:54 +01:00
6543
26a199053b
lint: rename
2021-12-05 18:20:40 +01:00
6543
0374e95d23
make tryUpstream independent func
2021-12-05 18:20:39 +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
77e39b2213
unexport if posible
2021-12-05 16:24:26 +01:00
6543
e6198e4ddd
start refactor Upstream func
2021-12-05 15:59:43 +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
b6c4c63fb4
own file
2021-12-05 15:25:12 +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
fdd04610e5
fix .domains and make it redable
2021-12-05 14:48:53 +01:00
6543
5b2e91a37a
REDIRECT_RAW_INFO -> RAW_INFO_PAGE
2021-12-05 14:48:52 +01:00
6543
38426c26db
move upstream into own package
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
796f24262e
fix code format
2021-12-05 14:48:48 +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
6543
bdc2d0c259
dont access global vars inject them
2021-12-05 14:48:41 +01:00
6543
fb5726bd20
use zerolog instead of own logger
2021-12-05 14:48:40 +01:00
6543
a6da3eb5f0
ignore vendor/ folder
2021-11-25 16:19:04 +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