nginx/exozyme.conf

36 lines
797 B
Text
Raw Permalink Normal View History

2021-05-22 18:30:52 +00:00
server {
2021-05-25 03:24:31 +00:00
listen 80 default_server;
2021-06-17 03:15:07 +00:00
listen [::]:80 default_server;
2021-11-25 04:08:25 +00:00
location / {
return 301 https://$host$request_uri;
}
2021-05-22 18:30:52 +00:00
}
server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
2021-05-25 03:24:31 +00:00
server_name exozy.me;
2021-05-22 18:30:52 +00:00
root /srv/http/www;
2021-05-25 03:24:31 +00:00
index index.html;
location /.well-known/matrix/server {
return 200 '{"m.server": "chat.exozy.me:443"}';
2021-05-25 03:24:31 +00:00
}
2021-08-02 15:05:27 +00:00
location /.well-known/matrix/client {
return 200 '{"m.homeserver": {"base_url": "https://chat.exozy.me"}}';
default_type application/json;
add_header Access-Control-Allow-Origin *;
}
2021-07-24 02:03:44 +00:00
location /.well-known/webfinger {
return 301 https://social.exozy.me$request_uri;
}
2021-08-02 15:05:27 +00:00
2021-05-25 03:24:31 +00:00
location / {
try_files $uri $uri.html $uri/ =404;
2021-05-25 03:24:31 +00:00
}
2021-05-22 18:30:52 +00:00
}