minetest emailverif; XMPP host-meta
This commit is contained in:
parent
dd91296009
commit
c228918319
|
@ -2,14 +2,14 @@ server {
|
|||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name minetest.vern.cc;
|
||||
root /var/www/minetest;
|
||||
index index.html;
|
||||
|
||||
include snippets/lets-encrypt.conf;
|
||||
location ~ (\.cgi|\.py|\.sh|\.pl|\.lua|\/cgi-bin)$ {
|
||||
gzip off;
|
||||
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:5008/;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $host; # so Invidious knows domain
|
||||
proxy_http_version 1.1; # to keep alive
|
||||
proxy_set_header Connection ""; # to keep alive
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -117,6 +117,18 @@ server {
|
|||
add_header Access-Control-Allow-Origin *;
|
||||
return 200 '{"m.homeserver": {"base_url": "https://mtrx.vern.cc"}, "m.identity_server": { "base_url": "https://vector.im" }}';
|
||||
}
|
||||
location /.well-known/host-meta {
|
||||
default_type 'application/xrd+xml';
|
||||
add_header Access-Control-Allow-Origin '*' always;
|
||||
return 200 '<?xml version="1.0" encoding="UTF-8"?><XRD xmlns=\'http://docs.oasis-open.org/ns/xri/xrd-1.0\'><Link href=\'https://vern.cc:5281/http-bind\' rel=\'urn:xmpp:alt-connections:xbosh\'/><Link href=\'wss://vern.cc:5281/xmpp-websocket\' rel=\'urn:xmpp:alt-connections:websocket\'/></XRD>';
|
||||
}
|
||||
|
||||
location /.well-known/host-meta.json {
|
||||
default_type 'application/jrd+json';
|
||||
add_header Access-Control-Allow-Origin '*' always;
|
||||
return 200 '{"links":[{"rel":"urn:xmpp:alt-connections:xbosh","href":"https://vern.cc:5281/http-bind"},{"rel":"urn:xmpp:alt-connections:websocket","href":"wss://vern.cc:5281/xmpp-websocket"}]}';
|
||||
}
|
||||
|
||||
|
||||
include common/website.conf;
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
/etc/nginx/sites-available/hedgedoc.conf
|
Loading…
Reference in New Issue