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 {
|
2021-12-27 03:17:12 +00:00
|
|
|
listen 443 ssl http2 default_server;
|
|
|
|
listen [::]:443 ssl http2 default_server;
|
2021-05-25 03:24:31 +00:00
|
|
|
server_name exozy.me;
|
2021-05-22 18:30:52 +00:00
|
|
|
|
2022-01-04 15:11:56 +00:00
|
|
|
include conf.d/ssl;
|
2021-05-22 18:30:52 +00:00
|
|
|
|
2021-10-30 22:54:02 +00:00
|
|
|
root /srv/http/exozyme;
|
2021-05-25 03:24:31 +00:00
|
|
|
index index.html;
|
|
|
|
|
|
|
|
location /.well-known/matrix/server {
|
2021-08-25 01:57:20 +00:00
|
|
|
return 200 '{"m.server": "chat.exozy.me:443"}';
|
2021-05-25 03:24:31 +00:00
|
|
|
}
|
2021-08-02 15:05:27 +00:00
|
|
|
|
2021-12-05 17:47:29 +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
|
|
|
|
2022-02-03 00:17:07 +00:00
|
|
|
location /api/ {
|
2022-01-16 22:34:36 +00:00
|
|
|
proxy_pass http://localhost:1337;
|
2021-11-23 02:21:13 +00:00
|
|
|
}
|
|
|
|
|
2021-05-25 03:24:31 +00:00
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
}
|
2021-05-22 18:30:52 +00:00
|
|
|
}
|