2023-12-31 12:59:13 +00:00
|
|
|
private.coffee www.private.coffee {
|
|
|
|
header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
|
|
|
|
|
|
|
|
header Access-Control-Allow-Origin https://element.private.coffee
|
|
|
|
header Access-Control-Allow-Methods "GET"
|
|
|
|
header Access-Control-Allow-Headers "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range"
|
|
|
|
header Access-Control-Expose-Headers "Content-Length,Content-Range"
|
|
|
|
|
2024-01-07 10:22:38 +00:00
|
|
|
@matrix {
|
|
|
|
path matrix /.well-known/matrix/*
|
|
|
|
}
|
2023-12-31 12:59:13 +00:00
|
|
|
|
|
|
|
@assets {
|
|
|
|
path assets /assets/*
|
|
|
|
}
|
|
|
|
|
2024-03-15 09:55:50 +00:00
|
|
|
@security {
|
|
|
|
path security-well-known /.well-known/security.txt
|
|
|
|
path security /security.txt
|
|
|
|
}
|
|
|
|
|
2024-01-07 10:22:38 +00:00
|
|
|
handle @matrix {
|
|
|
|
header /.well-known/matrix/* Content-Type application/json
|
|
|
|
header /.well-known/matrix/* Access-Control-Allow-Origin *
|
|
|
|
respond /.well-known/matrix/server `{"m.server": "matrix.private.coffee:443"}`
|
|
|
|
respond /.well-known/matrix/client `{"m.homeserver":{"base_url":"https://matrix.private.coffee"}}`
|
|
|
|
}
|
|
|
|
|
2023-12-31 13:37:59 +00:00
|
|
|
handle @assets {
|
|
|
|
file_server
|
|
|
|
root * /srv/private.coffee
|
|
|
|
}
|
|
|
|
|
2024-03-15 09:55:50 +00:00
|
|
|
handle @security {
|
|
|
|
redir https://security.private.coffee/security.txt
|
|
|
|
}
|
|
|
|
|
2023-12-31 13:37:59 +00:00
|
|
|
handle {
|
|
|
|
reverse_proxy * unix//var/run/uwsgi/privatecoffee.sock
|
|
|
|
}
|
2023-12-31 12:59:13 +00:00
|
|
|
}
|