2021-05-10 15:15:42 +02:00
|
|
|
location / {
|
|
|
|
|
|
|
|
proxy_pass http://127.0.0.1:__PORT__;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Host $server_name;
|
|
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
|
|
|
}
|
2021-08-29 14:56:00 +02:00
|
|
|
|
2022-02-21 15:18:35 +01:00
|
|
|
location /.well-known/acme-challenge {
|
|
|
|
proxy_pass http://127.0.0.1:8009;
|
|
|
|
}
|
|
|
|
|
2021-11-22 15:33:57 +01:00
|
|
|
location /.well-known/matrix/server {
|
2022-02-21 14:40:30 +01:00
|
|
|
return 200 '{ "m.server": "__SYNAPSE_DOMAIN__:443" }';
|
2021-11-22 15:33:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
location /.well-known/matrix/client {
|
2022-02-21 14:40:30 +01:00
|
|
|
return 200 '{ "m.homeserver": { "base_url": "https://__SYNAPSE_DOMAIN__" } }';
|
2021-11-22 15:33:57 +01:00
|
|
|
}
|
|
|
|
|
2021-08-29 14:56:00 +02:00
|
|
|
location /_matrix {
|
2022-02-21 15:18:35 +01:00
|
|
|
proxy_pass http://127.0.0.1:8008;
|
2021-11-22 15:33:57 +01:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_read_timeout 600;
|
|
|
|
client_max_body_size 100M;
|
|
|
|
}
|
|
|
|
|
2022-02-21 15:24:53 +01:00
|
|
|
location /_synapse/admin {
|
2022-02-21 15:18:35 +01:00
|
|
|
proxy_pass http://127.0.0.1:8008;
|
2021-11-22 15:33:57 +01:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_read_timeout 600;
|
|
|
|
client_max_body_size 100M;
|
|
|
|
}
|