matrix-synapse: Lock content-type for well-known

This commit is contained in:
Alexander Olofsson 2020-08-11 20:50:22 +02:00
parent 04b62eada3
commit 069da65136
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
2 changed files with 4 additions and 1 deletions

View file

@ -5,7 +5,7 @@ description: Matrix reference homeserver
appVersion: 1.18.0 appVersion: 1.18.0
type: application type: application
version: 0.1.4 version: 0.1.5
maintainers: maintainers:
- name: Alexander Olofsson - name: Alexander Olofsson
email: ace@haxalot.com email: ace@haxalot.com

View file

@ -35,6 +35,9 @@ data:
"access-control-allow-methods" => "GET, POST, PUT, DELETE, OPTIONS", "access-control-allow-methods" => "GET, POST, PUT, DELETE, OPTIONS",
"access-control-allow-origin" => "*" "access-control-allow-origin" => "*"
) )
setenv.set-response-header = (
"content-type" => "application/json"
)
server.json: |- server.json: |-
{{ dict "m.server" (printf "%s:%d" (.Values.wellknown.host | default .Values.config.serverName) (.Values.wellknown.port | default 443)) | toJson | indent 4 }} {{ dict "m.server" (printf "%s:%d" (.Values.wellknown.host | default .Values.config.serverName) (.Values.wellknown.port | default 443)) | toJson | indent 4 }}
{{- end }} {{- end }}