fix(matrix-synapse): add cors to well-known
This commit is contained in:
parent
6f18af3d01
commit
d9944d6c3f
5 changed files with 26 additions and 3 deletions
|
@ -4,7 +4,7 @@ name: matrix-synapse
|
|||
description: Matrix reference homeserver
|
||||
icon: https://matrix.org/images/matrix-logo.svg
|
||||
type: application
|
||||
version: 0.2.7
|
||||
version: 0.2.8
|
||||
# renovate: image=ghcr.io/element-hq/synapse
|
||||
appVersion: 1.101.0
|
||||
maintainers:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
= matrix-synapse
|
||||
|
||||
image::https://img.shields.io/badge/Version-0.2.7-informational?style=flat-square[Version: 0.2.7]
|
||||
image::https://img.shields.io/badge/Version-0.2.8-informational?style=flat-square[Version: 0.2.8]
|
||||
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
|
||||
image::https://img.shields.io/badge/AppVersion-1.101.0-informational?style=flat-square[AppVersion: 1.101.0]
|
||||
== Maintainers
|
||||
|
|
15
matrix-synapse/files/well-known/nginx.conf
Normal file
15
matrix-synapse/files/well-known/nginx.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
add_header Access-Control-Allow-Origin "*";
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
|
@ -20,4 +20,5 @@ data:
|
|||
{{- else }}
|
||||
{{- dict "m.homeserver" (dict "base_url" (printf "https://%s/" (.Values.publicServerName | default .Values.serverName))) | toJson | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- (.Files.Glob "files/well-known/*" ).AsConfig | nindent 2 }}
|
||||
{{- end -}}{{/* end-if .wellknown.enabled */}}
|
||||
|
|
|
@ -55,7 +55,14 @@ spec:
|
|||
{{- toYaml .Values.wellknown.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
- name: "data"
|
||||
mountPath: "/usr/share/nginx/html/.well-known/matrix/"
|
||||
mountPath: "/usr/share/nginx/html/.well-known/matrix/client"
|
||||
subPath: "client"
|
||||
- name: "data"
|
||||
mountPath: "/usr/share/nginx/html/.well-known/matrix/server"
|
||||
subPath: "server"
|
||||
- name: "data"
|
||||
mountPath: "/etc/nginx/conf.d/default.conf"
|
||||
subPath: "nginx.conf"
|
||||
{{- with .Values.wellknown.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
|
|
Loading…
Add table
Reference in a new issue