Skip to content

Instantly share code, notes, and snippets.

@mohemohe
Created April 11, 2019 06:27
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 mohemohe/bd13f3f6b97b1199342c584fccb57e87 to your computer and use it in GitHub Desktop.
Save mohemohe/bd13f3f6b97b1199342c584fccb57e87 to your computer and use it in GitHub Desktop.
mstdn.plusminus.io {
tls mohemohe@ghippos.net
log stdout
errors stdout
realip {
from 10.0.0.0/8
from 172.16.0.0/12
from 192.168.0.0/16
}
header / {
X-Robots-Tag "noindex,nofollow,noarchive"
}
header /emoji Cache-Control "public, max-age=31536000, immutable"
header /packs Cache-Control "public, max-age=31536000, immutable"
header /system/accounts/avatars Cache-Control "public, max-age=31536000, immutable"
header /system/media_attachments/files Cache-Control "public, max-age=31536000, immutable"
proxy / http://mastodon_web:3000 {
transparent
websocket
}
proxy /api/v1/streaming http://mastodon_streaming:4000 {
transparent
websocket
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment