Skip to content
Discussion options

You must be logged in to vote

My team has been using Caddy for localhost HTTPS proxy. There are various ways to generate the certificates.

File: package.json

"scripts": {
  "fusion:start": "fusion start",
  "secure": "caddy --version && caddy run",
  "start": "npm-run-all -p secure fusion:start",
}

File: Caddyfile

# PB Fusion site proxy
arc-local.domain.com {
  # Transport Layer Security for HTTPS
  tls ./dev/certs/arc-local.domain.com.pem ./dev/certs/arc-local.domain.com-key.pem

  # Prevent PB Editor "Bad Network Request" error for this file
  handle /pagebuilder/editor-global-message.json {
    header Content-Type "application/json"
    respond `{}` 200
  }

  # Reverse Proxy from HTTP on port 8080 to HTTPS on por…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by khaos119
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
2 participants