Skip to content

docs(#100): add TLS and reverse proxy documentation - #281

Merged
ajianaz merged 2 commits into
developfrom
docs/100-tls-reverse-proxy
Jun 11, 2026
Merged

ajianaz merged 2 commits into
developfrom
docs/100-tls-reverse-proxy

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

New docs/tls.md page covering TLS termination and reverse proxy setup for production deployments.

  • Caddy: automatic HTTPS with Caddyfile + Docker Compose
  • Nginx: manual setup with certificates
  • Cloudflare Tunnel: zero-config TLS
  • Security checklist: auth, CORS, bind address, file permissions
  • Configuration reference with CLI flags and env vars

Updates VitePress sidebar.

Closes #100

New docs/tls.md covering:
- Caddy setup with auto-HTTPS (Caddyfile + Docker Compose)
- Nginx setup with Let's Encrypt
- Cloudflare Tunnel for zero-config TLS
- Security checklist (auth, CORS, bind address, file permissions)
- Environment variable reference

Also adds crates.io metadata note in CHANGELOG.
Updates VitePress sidebar.

Closes #100
@ajianaz ajianaz added the scope:docs Documentation label Jun 11, 2026
@github-actions

github-actions Bot commented Jun 11, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review recommended — warnings found.

🟡 Warning (1)

  • unknown:? — Cora AI review could not complete: LLM API returned status 524:
<title>xixiapi.cc | 524: A timeout occurred</title>

A timeout occurred Error code 524

Visit cloudflare.com for more information.
2026-06-11 05:33:33 UTC
<span class="cf-icon-browser block md:hidden h-20 bg-center bg-no-repeat"></span>
<span class="cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
You

Browser

Working

Hong Kong

Cloudflare

Working

<span class="cf-icon-server block md:hidden h-20 bg-center bg-no-repeat"></span>
<span class="cf-icon-error w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
xixiapi.cc

Host

Error

    <div class="w-240 lg:w-full mx-auto mb-8 lg:px-8">
        <div class="clearfix">
            <div class="w-1/2 md:w-full float-left pr-6 md:pb-10 md:pr-0 leading-relaxed">
                <h2 class="text-3xl font-normal leading-1.3 mb-4">What happened?</h2>
                <p class="mb-2">The origin web server timed out responding to this request.</p><p>The likely cause is an overloaded background task, database or application, stressing the resources on the host web server.</p>
            </div>
            <div class="w-1/2 md:w-full float-left leading-relaxed">
                <h2 class="text-3xl font-normal leading-1.3 mb-4">What can I do?</h2>
                
          <h3 class="text-15 font-semibold mb-2">If you're a visitor of this website:</h3>
          <p class="mb-6">Please try again in a few minutes.</p>

          <h3 class="text-15 font-semibold mb-2">If you're the owner of this website:</h3>
          <p>Please refer to the <a rel="noopener noreferrer" href="https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-524/">Error 524</a> article:</p>
          <ul class="ml-4">
            <li>Contact your hosting provider; check for long-running processes or an overloaded web server.</li>
            <li>Use status polling of large HTTP processes to avoid this error.</li>
            <li>Run the long-running scripts on a <a rel="noopener noreferrer" href="https://developers.cloudflare.com/dns/proxy-status/#dns-only-records">grey-clouded subdomain</a>.</li>
            <li>Enterprise customers can <a rel="noopener noreferrer" href="https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-524/#resolution-on-cloudflare">increase the timeout setting</a> globally or for specific requests using Cache Rules.</li>
          </ul>
            </div>
        </div>
    </div>

    <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">
<p class="text-13">
  <span class="cf-footer-item sm:block sm:mb-1">Cloudflare Ray ID: <strong class="font-semibold">a09e3acc2ccb85bb</strong></span>
  <span class="cf-footer-separator sm:hidden">&bull;</span>
  <span id="cf-footer-item-ip" class="cf-footer-item hidden sm:block sm:mb-1">
    Your IP:
    <button type="button" id="cf-footer-ip-reveal" class="cf-footer-ip-reveal-btn">Click to reveal</button>
    <span class="hidden" id="cf-footer-ip">47.239.51.54</span>
    <span class="cf-footer-separator sm:hidden">&bull;</span>
  </span>
  <span class="cf-footer-item sm:block sm:mb-1"><span>Performance &amp; security by</span> <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_524&#38;utm_campaign=xixiapi.cc" id="brand_link" target="_blank">Cloudflare</a></span>
  
</p>
<script>(function(){function d(){var b=a.getElementById("cf-footer-item-ip"),c=a.getElementById("cf-footer-ip-reveal");b&&"classList"in b&&(b.classList.remove("hidden"),c.addEventListener("click",function(){c.classList.add("hidden");a.getElementById("cf-footer-ip").classList.remove("hidden")}))}var a=document;document.addEventListener&&a.addEventListener("DOMContentLoaded",d)})();</script>
</div>
. Review was skipped; no code quality issues were found by the automated check.

Review powered by cora-cli · BYOK · MIT

@ajianaz
ajianaz merged commit 5bbf6a4 into develop Jun 11, 2026
9 checks passed
@ajianaz
ajianaz deleted the docs/100-tls-reverse-proxy branch June 11, 2026 06:43
ajianaz added a commit that referenced this pull request Aug 13, 2026
* docs(#100): add TLS and reverse proxy documentation

New docs/tls.md covering:
- Caddy setup with auto-HTTPS (Caddyfile + Docker Compose)
- Nginx setup with Let's Encrypt
- Cloudflare Tunnel for zero-config TLS
- Security checklist (auth, CORS, bind address, file permissions)
- Environment variable reference

Also adds crates.io metadata note in CHANGELOG.
Updates VitePress sidebar.

Closes #100

* ci: re-trigger Cora Review (API was down)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:docs Documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: TLS support & reverse proxy documentation

1 participant