# Snippets
import log.caddy
import security.caddy

www.simplenotes.be {
    redir * https://simplenotes.be{path}
}

simplenotes.be {
    import log simplenotes.be
    import strict-transport
    header -Server

    reverse_proxy http://localhost:8080 {
       health_path /health
       health_interval 5s
       health_timeout 200ms
   }
}

dev.simplenotes.be {
    import log dev.simplenotes.be
    import strict-transport
    header -Server

    reverse_proxy http://localhost:8081
}
