[matrix] get element web proxied
This commit is contained in:
parent
ab8ef088a3
commit
d3db21b7ca
1 changed files with 19 additions and 0 deletions
19
apps/matrix/element-web-nginx-proxy/element-web.conf
Normal file
19
apps/matrix/element-web-nginx-proxy/element-web.conf
Normal file
|
@ -0,0 +1,19 @@
|
|||
server {
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
server_name {{ tpl .Values.elementWebFQDN . }};
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/{{ tpl .Values.elementWebFQDN . }}/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/{{ tpl .Values.elementWebFQDN . }}/privkey.pem;
|
||||
|
||||
client_max_body_size {{ .Values.max_filesize_in_mb}}m;
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_pass http://localhost:8080;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue