update from server site

This commit is contained in:
creme 2020-01-24 10:40:58 +00:00
parent 8d71520216
commit ea187b0eb4
3 changed files with 22 additions and 0 deletions

View File

@ -52,6 +52,13 @@ server {
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
# pleroma
# location /.well-known/webfinger {
# if ( $query_string ~ resource=acct:(?<username>[^@]+)@envs\.net ) {
# return 302 https://pleroma.envs.net/.well-known/webfinger?resource=acct:$username@pleroma.envs.net;
# }
# }
# matrix
location /.well-known/matrix/ {
add_header Access-Control-Allow-Origin *;
@ -59,6 +66,12 @@ server {
return 200 '{"m.server": "envs.net:8448", "m.homeserver": {"base_url": "https://matrix.envs.net"}}';
}
location /.well-known/matrix/support {
add_header Access-Control-Allow-Origin *;
add_header Content-Type application/json;
return 200 '{"admins": [{"matrix_id": "@creme:envs.net", "email_address": "hostmaster@envs.net", "role": "admin"}]}';
}
location /_matrix {
include proxy_params;
proxy_ssl_name $http_host;

View File

@ -23,6 +23,9 @@ server {
proxy_ssl_name $http_host;
proxy_ssl_server_name on;
proxy_pass https://pleroma.envs.net;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
}

View File

@ -9,6 +9,7 @@ bitbot
broadcasthost
cloud
dev
devuser
ennik
envs
forum
@ -27,14 +28,17 @@ localhost
lounge
linux
mail
manager
mailer-daemon
marketing
marketting
mastodon
mis
news
nobody
noc
noreply
pleroma
pop
pop3
postmaster
@ -44,6 +48,7 @@ root
rss
sales
security
service
services
smtp
ssladmin
@ -55,6 +60,7 @@ sysadmin
team
tilde
twtxt
toot
town
usenet
uucp