Skip to content

Instantly share code, notes, and snippets.

@goodtiding5
Created November 29, 2017 00:48
Show Gist options
  • Save goodtiding5/8fa1750ce20355fdde041fd90e68a7ff to your computer and use it in GitHub Desktop.
Save goodtiding5/8fa1750ce20355fdde041fd90e68a7ff to your computer and use it in GitHub Desktop.
Caddy proxy for zeronet

This is for caddy 0.10.10

host.domain.tld {
  # Enable HSTS
  header / Strict-Transport-Security "max-age=31556926"
  header / X-Frame-Options "SAMEORIGIN"
  header / X-XSS-Protection "1; mode=block"

  tls {
    alpn http/1.1
  }

  timeouts {
    read 1h
  }

  proxy /          http://127.0.0.1:43110 {
    transparent
    websocket
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment