Commit graph

  • 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
  • bdc2d0c259
    dont access global vars inject them 6543 2021-12-05 14:45:17 +01:00
  • fb5726bd20
    use zerolog instead of own logger 6543 2021-12-05 14:43:51 +01:00
  • 76e5d8e77c
    Add TODOs Moritz Marquardt 2021-12-02 19:12:45 +01:00
  • 2e970dbcda Merge pull request 'Fix github-style non-.html URLs repeating the path twice' (#23) from bugfix/github-style-nohtml-paths into main Moritz Marquardt 2021-12-05 13:56:01 +01:00
  • 51c79f512d Fix github-style non-.html URLs repeating the path twice Moritz Marquardt 2021-12-04 13:54:18 +01:00
  • 38938e884d Merge pull request 'Add redirect for GitHub-style non-".html" paths & force remove index.html suffix' (#13) from feature/github-style-nohtml-paths into main v2.3 Moritz Marquardt 2021-12-02 20:35:43 +01:00
  • 57dce3b0c5 Add redirect for GitHub-style non-".html" paths & force remove index.html suffix Moritz Marquardt 2021-12-02 10:16:23 +01:00
  • 026a04e57e Merge pull request 'Change browser cache to 10 minutes to make bigger pages more performant' (#14) from feature/browser-side-caching into main Moritz Marquardt 2021-12-02 20:35:33 +01:00
  • b6d7f5a6ee Change browser cache to 10 minutes to make bigger pages more performant Moritz Marquardt 2021-12-02 10:23:03 +01:00
  • 726d8321e8 Merge pull request 'Fix (half) empty cache issue' (#17) from bugfix/large-files-are-empty into main Moritz Marquardt 2021-12-02 20:35:22 +01:00
  • 989d00832f
    Fix (half) empty cache issue Moritz Marquardt 2021-12-02 19:11:13 +01:00
  • 6d6e0c885e Add IPv6 to quick instructions Otto Richter 2021-12-02 18:08:03 +01:00
  • b3cd1ee33e
    Change browser cache to 10 minutes to make bigger pages more performant Moritz Marquardt 2021-12-02 10:23:03 +01:00
  • 77ece3cf44
    Add redirect for GitHub-style non-".html" paths & force remove index.html suffix Moritz Marquardt 2021-12-02 10:16:23 +01:00
  • b2ca339694 Fix line breaks Moritz Marquardt 2021-12-02 09:44:35 +01:00
  • 2b45e736f3 Add tiny help text for .domains file Moritz Marquardt 2021-12-02 09:38:16 +01:00
  • 15fa38d0fc Add link back to codeberg.org to the landing page Moritz Marquardt 2021-12-02 00:56:23 +01:00
  • 82d8b9f2f1 Fix text overflow on mobile landing page Moritz Marquardt 2021-12-02 00:53:17 +01:00
  • ea7d1ce1c5 Clean up index.html and remove nofollow meta (Search Engines, come here, yes!) Otto Richter 2021-12-02 00:05:33 +01:00
  • 26dd1591f6
    Add www redirect for main domain v2.2 Moritz Marquardt 2021-12-02 00:00:00 +01:00
  • 2d0d15b804
    Add .gitignore from main branch to avoid confusion Moritz Marquardt 2021-12-01 23:55:06 +01:00
  • 22d7332120
    Add index.html page for main domain Moritz Marquardt 2021-12-01 23:54:04 +01:00
  • a48ba8ee49
    Run gofmt Moritz Marquardt 2021-12-01 22:59:52 +01:00
  • fedfa8def4
    Remove REDIRECT_BROKEN_DNS page and instead use "Failed Dependency" error Moritz Marquardt 2021-12-01 22:59:38 +01:00
  • 6c85b8a166 Merge pull request 'Handle certificate errors with mock certificates (fixes #10)' (#12) from feature/certificate-error-handling into main Moritz Marquardt 2021-12-01 22:53:33 +01:00
  • 544b3f7321
    (Ab)use CSR field to store try-again date for renewals (instead of showing a mock cert), must be tested when the first renewals are due Moritz Marquardt 2021-12-01 22:49:48 +01:00
  • f29ebc57d3
    Handle certificate errors with mock certificates (fixes #10) Moritz Marquardt 2021-12-01 16:23:37 +01:00
  • 5b6e3748b4 Merge pull request 'Pass Gitea API token to requests' (#9) from fnetX/codeberg-pages-server:main into main Moritz Marquardt 2021-12-01 21:46:28 +01:00
  • 6d520c2a40
    Update error message for private repo access Moritz Marquardt 2021-12-01 21:44:54 +01:00
  • 73da80adc1
    Switch GiteaApiToken from byte to string fnetx 2021-11-26 17:10:31 +01:00
  • 455f65216c
    Remove access token from canonicalLink as per momar fnetx 2021-11-26 17:03:58 +01:00
  • 772c17e214
    Pass Gitea API token to requests fnetx 2021-11-26 04:06:17 +01:00
  • 418dbb7315 Merge pull request 'Refactor Code' (#8) from 6543/codeberg-pages:refactor into main Moritz Marquardt 2021-11-25 19:16:20 +01:00
  • a6da3eb5f0
    ignore vendor/ folder 6543 2021-11-25 16:19:04 +01:00
  • f2bb6aa36f
    fix comment 6543 2021-11-25 16:18:28 +01:00
  • e800d2110e
    gofmt -s -w *.go */*.go 6543 2021-11-25 16:12:28 +01:00
  • 5ed8d0f129
    Add clarification on cache & reduce default branch cache to 15 minutes v2.1 Moritz Marquardt 2021-11-24 19:09:37 +01:00
  • e5385be6da
    Fix iterator issue causing 100% CPU load Moritz Marquardt 2021-11-24 19:08:34 +01:00
  • ce802734d4
    Add build script & ignore files v2.0 Moritz Marquardt 2021-11-20 21:43:12 +01:00
  • eae4513b96
    Fix timeout for HTTP-01, bug in HTTP challenge response & only count domains towards user limit after acquiring locks Moritz Marquardt 2021-11-20 21:39:40 +01:00
  • f22cd6c4e0
    Make it possible to disable rate limits Moritz Marquardt 2021-11-20 21:12:28 +01:00
  • c99dbb34ce
    Implement HTTP-01 challenge Moritz Marquardt 2021-11-20 21:10:46 +01:00
  • 73c21d0195
    Reduce file cache timeout as it doesn't seem to do much Moritz Marquardt 2021-11-20 20:34:12 +01:00
  • b19a5ecc1d
    Switch back to Let's Encrypt again & implement renewal Moritz Marquardt 2021-11-20 19:36:12 +01:00
  • 77321eb181
    Make ACME account persistent & fix issues with certificate resolution Moritz Marquardt 2021-11-20 15:54:52 +01:00
  • fcccd6435a
    Add EAB for ACME Moritz Marquardt 2021-11-20 15:37:36 +01:00
  • d1ed16c0f2
    Update everything & add Justfile Moritz Marquardt 2021-11-20 15:31:10 +01:00
  • 2aaac2c52b
    Completely refactor certificates and implement renewal & cleanup Moritz Marquardt 2021-11-20 15:30:58 +01:00
  • dbccffc135
    make binary faster and smaller crapStone 2021-10-26 17:31:38 +02:00
  • cf5e9e1ac0
    remove unused function crapStone 2021-10-23 23:05:49 +02:00
  • b540284764
    upgrade to edition 2021, clippy fixes, error fixed crapStone 2021-10-23 22:57:56 +02:00
  • 6def9f298c
    fix help message crapStone 2021-10-05 14:12:22 +02:00
  • 29799b7c3a
    update dependencies crapStone 2021-10-05 13:48:34 +02:00
  • bff9ffed57 Prepare for v1.15 release (#73) v1.0_php 6543 2021-07-02 14:50:46 +02:00
  • d668245696 Stop hardcoding hostnames fnetx 2021-08-26 02:04:22 +02:00
  • 9b0953c7a7 add more reserved user names Codeberg 2021-08-18 23:52:42 +02:00
  • 33f7a5d0df
    Commit all current changes before vacation... Moritz Marquardt 2021-08-22 17:59:30 +02:00
  • 334b2a917a
    update dependencies crapStone 2021-08-22 15:41:18 +02:00
  • f89cdae359
    update dependencies crapStone 2021-04-18 23:58:11 +02:00
  • 4494023086
    Implement simple version of automatic certificate issuance Moritz Marquardt 2021-07-13 15:45:28 +02:00
  • 7c70be21d7
    Add HSTS & cipher suites, handle fallback cert errors & change default port to 443 Moritz Marquardt 2021-07-13 10:28:36 +02:00
  • 0602811709
    Add timing tests & fix caching Moritz Marquardt 2021-07-13 10:28:06 +02:00
  • 675e56ee98
    Implement domain handling logic Moritz Marquardt 2021-07-09 01:16:00 +02:00
  • 13b386d442
    Switch to HTTPS using a self-signed certificate Moritz Marquardt 2021-07-09 01:15:42 +02:00
  • 373c13baee
    Update dependencies Moritz Marquardt 2021-07-08 23:09:46 +02:00
  • f63bd1bb2f
    Add timing tests Moritz Marquardt 2021-07-08 23:08:58 +02:00
  • 3e9aaa8a4a
    Make settings configurable Moritz Marquardt 2021-07-08 23:08:50 +02:00
  • 4bc1cd5f7b
    Add file cache Moritz Marquardt 2021-07-08 23:08:30 +02:00
  • e94bdb4ed3
    Add screenshot of the SNI test script Moritz Marquardt 2021-06-06 12:38:07 +02:00
  • b54f9df4c5
    Add proof of concept for SNI-based routing through HAProxy Moritz Marquardt 2021-06-06 12:29:53 +02:00
  • d35ce9740e Fix function doc for actual parameter type Marcos de Oliveira 2021-05-11 15:16:57 -03:00
  • 523b5f052c Use proc_open() instead of exec() for runing git commands Marcos de Oliveira 2021-05-04 10:27:31 -03:00
  • 2266db03b7 Update links on codeberg.page n 2021-05-19 20:53:06 +09:00
  • 1ef87fa04b Fix fonts on codeberg.page n 2021-05-19 20:51:53 +09:00
  • 91e8a89fb6 use codeberg.page for production Andreas Shimokawa 2021-04-28 12:52:33 +02:00
  • 2e0608c270
    Fix redirects for pages repo Moritz Marquardt 2021-03-19 21:33:57 +01:00
  • 203e230905
    Implement caching & limit concurrency Moritz Marquardt 2021-03-19 20:58:53 +01:00
  • 8ead10c82e
    Implement SEO optimizations and improve error handling and branch detection Moritz Marquardt 2021-03-19 20:30:08 +01:00
  • c4bae34b71
    Add TODOs Moritz Marquardt 2021-03-19 13:20:00 +01:00
  • 44c41c7459
    Release under EUPL v. 1.2 Moritz Marquardt 2021-03-17 01:21:50 +01:00
  • cdd6727049
    Fix error page not rendering & make it more beautiful Moritz Marquardt 2021-03-17 01:16:57 +01:00
  • 017b5852e0 Make URLs safe for raw pages, by using the Gitea API and gutting the request URI Moritz Marquardt 2021-03-17 00:48:52 +01:00
  • 241f7a57ec
    Split code into multiple files Moritz Marquardt 2021-03-17 00:34:31 +01:00
  • 1a80684e79
    Clean up, fix bugs, implement caching & use API Moritz Marquardt 2021-03-17 00:24:34 +01:00
  • 0756993f7e
    Implement first version without custom domains, TLS and caching Moritz Marquardt 2021-03-16 20:22:06 +01:00
  • c06c201b90 Allow CORS only to design.codeberg.org and fonts.codeberg.org, or on "raw.*.non-org-tld" Moritz Marquardt 2021-03-16 15:46:29 +01:00
  • c5115c10fd Re-allow hosting HTML, JS & CSS from *.org Moritz Marquardt 2021-02-20 20:33:51 +01:00
  • 21dcda3889 Support for raw content subdomain codeberg.org 2021-02-21 16:34:48 +01:00
  • 04b94120dc Allow custom repo name for *.org pages & add design.codeberg.org Moritz Marquardt 2021-02-20 20:38:08 +01:00
  • b866134b9c raw content delivery support -- urls are raw.codeberg.eu/{owner}/{repo}/... codeberg.org 2020-12-28 00:26:59 +01:00