Update reverse proxy configs

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2022-11-22 15:55:58 -05:00
parent ea363f476b
commit 80a03b6a96
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2
2 changed files with 8 additions and 8 deletions

View File

@ -5,14 +5,14 @@
# or "set $upstream_app <HOSTIP>;" for host mode, HOSTIP being the IP address of element
server {
listen 443 ssl;
listen [::]:443 ssl;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name app.*;
server_name element.*;
include /config/nginx/ssl.conf;
add_header X-Frame-Options "SAMEORIGIN" always;
client_max_body_size 0;
location / {

View File

@ -1,12 +1,12 @@
# Version 2021/10/03
# Version 2022/10/04
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
# For the federation port
listen 8448 ssl http2 default_server;
listen [::]:8448 ssl http2 default_server;
listen 8448 ssl http2;
listen [::]:8448 ssl http2;
server_name matrix.*;
@ -55,7 +55,7 @@ server {
set $upstream_port 8008;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
location /.well-known/matrix/client {
default_type application/json;
add_header Access-Control-Allow-Origin *;