Skip to content

Instantly share code, notes, and snippets.

@oliof
Last active February 7, 2017 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oliof/57345a6596bb3a564f68d1482fb383f9 to your computer and use it in GitHub Desktop.
Save oliof/57345a6596bb3a564f68d1482fb383f9 to your computer and use it in GitHub Desktop.
Caddy configuration as diaspora* serving frontend
# absolutely minimal configuration. "Works on my machine"
# adds no-referrer policy for some added privacy.
diaspora.example.com {
header / {
Referrer-Policy "no-referrer"
}
root /home/diaspora/diaspora/public
proxy / unix:/home/diaspora/diaspora/tmp/diaspora.sock {
transparent
except /assets /uploads
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment