Commit Graph

  • caeb1a4acb Return a 404 if there is no repository (#141) jklippel 2022-11-22 21:26:10 +00:00
  • f2f943c0d8 Remove unnecessary conversion (#139) Gusted 2022-11-15 16:15:11 +01:00
  • 3c61a39864 Enable http/2 support (#137) v4.1 Gusted 2022-11-12 22:25:20 +01:00
  • 4565481643 refactor: finish use default const for defaultPagesBranch and defaultPagesRepo v4.0 6543 2022-11-12 21:16:11 +01:00
  • c827a28dd8 defaultPagesBranch 6543 2022-11-12 21:13:13 +01:00
  • aa90356f0a use a const for defaultPagesRepo 6543 2022-11-12 21:10:16 +01:00
  • b6d0a04b21 refactor: rm not needed type conversion 6543 2022-11-12 21:04:34 +01:00
  • 6c63b66ce4 Refactor split long functions (#135) 6543 2022-11-12 20:43:44 +01:00
  • b9966487f6 switch to std http implementation instead of fasthttp (#106) 6543 2022-11-12 20:37:20 +01:00
  • 69eabb248a CI publish next only on default branch 6543 2022-11-12 00:23:45 +01:00
  • 8e67d28c4f Add editorconfig, fix files and lint via ci 6543 2022-11-11 23:51:45 +01:00
  • 91b54bef29 add newline 6543 2022-11-07 23:09:41 +01:00
  • bf9a08e1fd Fatal on ACME Client creation failure (#133) Gusted 2022-11-07 16:27:37 +01:00
  • b9e9f14209 use codeberg.org/6543/docker-images/golang_just v3.2.1 6543 2022-10-10 23:27:33 +02:00
  • df2228b6d5 ci: let tag run pipeline 6543 2022-10-10 23:25:21 +02:00
  • 091e6c8ed9 Add explicit logging in GetBranchTimestamp (#130) Gusted 2022-09-18 16:13:27 +02:00
  • 2a730b2439 Update README (#128) Gusted 2022-09-13 23:26:45 +02:00
  • 8f2699407d Make verbose checks in tryBranch (#127) Gusted 2022-09-13 23:06:31 +02:00
  • 1ae50735a1 Add host to handler logging (#123) v3.2 Gusted 2022-08-13 18:03:31 +02:00
  • 392c6ae452 full-name 6543 2022-08-12 07:02:24 +02:00
  • 88a217fbe6 docker images must be lowercase 6543 2022-08-12 06:55:35 +02:00
  • dc41a4caf4 Add Support to Follow Symlinks and LFS (#114) 6543 2022-08-12 06:40:12 +02:00
  • 519259f459 publish docker images on tag and push to main (#122) 6543 2022-08-12 06:14:39 +02:00
  • f72bbfd85f Fix just dev (#121) Gusted 2022-08-12 05:24:05 +02:00
  • 876a53d9a2 Improve logging (#116) Gusted 2022-08-12 05:06:26 +02:00
  • e06900d5e5 fix lint issue 6543 2022-08-08 15:25:31 +02:00
  • 00e8a41c89 Add Dockerfile (#111) dorianim 2022-07-16 00:59:55 +02:00
  • 8207586a48 just fix bcaceda711 v3.1 6543 2022-07-15 21:39:42 +02:00
  • bcaceda711 dont cache if ContentLength greater fileCacheSizeLimit (#108) 6543 2022-07-15 21:21:26 +02:00
  • 5411c96ef3 Tell fasthttp to not set "Content-Length: 0" on non cached content (#107) 6543 2022-07-15 21:06:05 +02:00
  • baf4e7e326 Make the 404 page more readable and natural (#104) Jeremy 2022-07-15 17:18:25 +02:00
  • fd24b4a2bc Pass logger to fasthttp (#98) Gusted 2022-07-12 15:32:48 +02:00
  • 9076bc3f75 Support access branch that contains slash character (#102) Gary Wang 2022-07-08 13:39:24 +02:00
  • 48a49f69a7 Increase concurrent connections to default value (#99) v3.0a Gusted 2022-07-03 13:20:02 +02:00
  • 6dedd55eb3 Release via CI (#94) v3.0 6543 2022-06-14 20:35:11 +02:00
  • 4c6164ef05 Propagate ETag from gitea (#93) 6543 2022-06-14 18:23:34 +02:00
  • cc32bab31f Enhance joinURL and return error on gitea client on start instead while running (#88) 6543 2022-06-13 20:07:32 +02:00
  • 913f762eb0 Add integration test for custom domain (#90) 6543 2022-06-13 14:43:49 +02:00
  • 38fb28f84f implement custom 404 pages (#81) crystal 2022-06-12 03:50:00 +02:00
  • 35b35c5d67 Add integration tests (#86) 6543 2022-06-11 23:17:43 +02:00
  • 02bd942b04 Move gitea api calls in own "client" package (#78) 6543 2022-06-11 23:02:06 +02:00
  • 659932521c Add info how to test & debug the server (#85) 6543 2022-06-10 20:17:07 +02:00
  • bb8eb32ee2 make debug messages unique 6543 2022-06-10 15:25:33 +02:00
  • f2ba7eac64 set golang to 1.18 (#84) 6543 2022-06-10 15:27:17 +02:00
  • 12cb305a65 Change MaxConnsPerIP to 0 to fix too many connections from HAProxy (#77) v2.5b Moritz Marquardt 2022-05-14 22:29:54 +02:00
  • 57076a47d3 Update 'Justfile' 6543 2022-05-30 23:55:37 +02:00
  • 6f12f2a8e4 fix bug 6543 2022-05-15 22:36:12 +02:00
  • b2ca888050 Change MaxConnsPerIP to 0 to fix too many connections from HAProxy (#77) Moritz Marquardt 2022-05-14 22:29:54 +02:00
  • 2dbc66d052 let golangci-lint have 5m to check 6543 2022-05-10 18:14:28 +02:00
  • 1724d9fb2e add "lint" to Justfile 6543 2022-05-10 18:13:14 +02:00
  • 4267d54a63 refactor (2) (#34) 6543 2022-04-20 23:42:01 +02:00
  • a2c5376d9a Fix CORS / add Access-Control-Allow-Origin * to all methods (#69) v2.5a Otto Richter 2022-04-10 18:11:00 +02:00
  • 1e4dfe2ae8 Fix tests to let CI pass (#66) 6543 2022-03-30 21:31:09 +02:00
  • f5d0dc7447 Add pipeline (#65) 6543 2022-03-27 21:54:06 +02:00
  • a5504acb0e Fix cert removal command (#50) Moritz Marquardt 2022-03-20 23:18:00 +01:00
  • f5e613bfdb Merge pull request 'Fix certs only being renewed 7 or 30 days *after* they expire instead of before' (#61) from hotfix/expiration into main Moritz Marquardt 2022-02-28 21:55:51 +01:00
  • cf9e6d9dc6 Fix certs only being renewed 7 or 30 days *after* they expire instead of before Moritz Marquardt 2022-02-28 21:50:13 +01:00
  • ac5b19123d Update README (#57) Otto Richter 2022-02-19 18:10:40 +01:00
  • 4404287958 Update 404 Not found page fnetx 2022-02-11 01:31:11 +01:00
  • e73c79da77 Merge pull request 'Refactor: restructure in packages and dont use golbal vars' (#18) from 6543/codeberg-pages:refactoring into main v2.5 Moritz Marquardt 2021-12-10 14:33:18 +01:00
  • adfc96ab94 Add --verbose flag and hide debug messages by default Moritz Marquardt 2021-12-10 14:32:14 +01:00
  • 73fa2da646 Update default to raw.codeberg.page & improve documentation on custom domains Moritz Marquardt 2021-12-10 14:31:58 +01:00
  • 6af6523a0f code format 6543 2021-12-09 20:16:43 +01:00
  • 70c7065f76 fix #31 6543 2021-12-09 19:32:30 +01:00
  • aa0638903a fix argument check and some nits 6543 2021-12-05 23:56:06 +01:00
  • 196482da07 less panic 6543 2021-12-05 23:20:34 +01:00
  • 5aae7c882f Merge branch 'master' into refactoring 6543 2021-12-05 22:50:46 +01:00
  • 67a190f68a Hotfix for #27: avoid slash before .html in GitHub compatibility redirects v2.4 Moritz Marquardt 2021-12-05 22:12:48 +01:00
  • a7bb3448a4 move more args of Upstream() to upstream Options 6543 2021-12-05 19:53:23 +01:00
  • 2f6b280fce meaningfull var names 6543 2021-12-05 19:02:26 +01:00
  • 5fe51d8621 rm certDB helper and build in 6543 2021-12-05 19:00:57 +01:00
  • a0534f1fde make MaintainCertDB able to cancel 6543 2021-12-05 18:26:54 +01:00
  • 26a199053b lint: rename 6543 2021-12-05 18:18:05 +01:00
  • 0374e95d23 make tryUpstream independent func 6543 2021-12-05 18:17:28 +01:00
  • e85f21ed2e some renames 6543 2021-12-05 17:57:54 +01:00
  • a0e0d2d335 make certdb maintain go routine a own func 6543 2021-12-05 17:44:10 +01:00
  • de439f9bec wrap cert db and make sync gracefull 6543 2021-12-05 17:42:53 +01:00
  • 11fa729686 mv acme config setup into own func 6543 2021-12-05 16:33:56 +01:00
  • 77e39b2213 unexport if posible 6543 2021-12-05 16:24:26 +01:00
  • e6198e4ddd start refactor Upstream func 6543 2021-12-05 15:59:43 +01:00
  • de4706bf58 rm 2rm 6543 2021-12-05 15:53:46 +01:00
  • 76c867cfca move "http acme server setup" into own func 6543 2021-12-05 15:45:22 +01:00
  • b6c4c63fb4 own file 6543 2021-12-05 15:25:12 +01:00
  • ccada3e6df split cert func to related packages 6543 2021-12-05 15:21:05 +01:00
  • bb6f28fe57 move setup of fastServer into own func 6543 2021-12-05 15:09:21 +01:00
  • b3830e979c inject all cache 6543 2021-12-05 15:02:44 +01:00
  • 2b49039252 add todo 6543 2021-12-04 21:59:04 +01:00
  • b28204a468 acme-api -> acme-api-endpoint 6543 2021-12-04 21:21:27 +01:00
  • 97d4ea9d6b main-domain-suffix -> pages-domain 6543 2021-12-04 21:17:52 +01:00
  • fdd04610e5 fix .domains and make it redable 6543 2021-12-04 21:16:22 +01:00
  • 5b2e91a37a REDIRECT_RAW_INFO -> RAW_INFO_PAGE 6543 2021-12-04 21:15:51 +01:00
  • 38426c26db move upstream into own package 6543 2021-12-05 14:47:33 +01:00
  • f35c4d0f66 make mem cache an interface and inject 6543 2021-12-03 04:32:30 +01:00
  • 0bc38b668f db Sync on exit 6543 2021-12-03 04:18:53 +01:00
  • 5ca5020cfa open key-database deterministic 6543 2021-12-03 04:15:48 +01:00
  • 796f24262e fix code format 6543 2021-12-03 03:46:21 +01:00
  • 690879440a move helper func in related packages 6543 2021-12-03 03:44:21 +01:00
  • 5b81a8b8bc remove os.Getenv() usage 6543 2021-12-03 03:34:50 +01:00
  • 35e08d2252 remove EnvOr use flags 6543 2021-12-03 03:05:38 +01:00
  • ac93a5661c start using urfave/cli 6543 2021-12-03 02:12:51 +01:00