Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Switch from custom / simple-http-server web serving to Caddy #67

@shah

Description

@shah

Instead of having multiple services for sandbox (Deno) vs. dev (simple-http-server) vs. production (Traefik) we should moved to a unified Caddy-based strategy:

  • Switch from Deno pubctl.ts experimental / sandbox model to deno_fcgi via Caddy with spawn-fcgi/FCGI::Spawn for serving hot-reloadable / watchable builds
  • Switch from simple-http-server to Caddy (see config hints for configuring spawn-fcgi).
    • Add a caddy parameter to pubctl.ts (similar to serve) that would generate a Caddyfile for execution after all other resources were created. This way no separate execution script is required.
  • Consider using Caddy in production with oAuth support instead of Traefik with oauth_proxy
  • Consider using Pglet approach to "micro apps" by integrating a single service point and then, similar to CGI or FastCGI, allowing applets to be created

In case we need native websockets:

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions