Skip to content

Instantly share code, notes, and snippets.

@damoun
Created October 15, 2016 21:22
Show Gist options
  • Save damoun/302daec942304288a20b39047b6cbf9f to your computer and use it in GitHub Desktop.
Save damoun/302daec942304288a20b39047b6cbf9f to your computer and use it in GitHub Desktop.
OpenBSD httpd configuration for Rainloop
types { include "/usr/share/misc/mime.types" }
server "webmail.exemple.com" {
listen on egress port 80
listen on egress tls port 443
tls certificate "/etc/ssl/webmail.exemple.com.crt"
tls key "/etc/ssl/private/webmail.exemple.com.key"
location "/data*" { block }
location "/rainloop*" {
root { "/htdocs/rainloop/rainloop", strip 1 }
}
location "/*" {
root { "/htdocs/rainloop/index.php" }
fastcgi socket "/run/rainloop.sock"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment