docker-test/nginx.conf

35 lines
854 B
Nginx Configuration File
Raw Permalink Normal View History

2023-10-16 21:24:46 +02:00
user nginx;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
2023-10-16 21:34:26 +02:00
listen 0.0.0.0:12345;
2023-10-16 21:24:46 +02:00
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
2024-01-28 13:23:53 +01:00
location /.well-known/matrix/server {
access_log off;
add_header Access-Control-Allow-Origin *;
default_type application/json;
return 200 '{"m.server": "matrix.depeuter.dev:443"}';
2023-10-16 21:24:46 +02:00
}
2024-01-21 16:57:46 +01:00
2024-01-28 13:23:53 +01:00
location /.well-known/matrix/client {
access_log off;
add_header Access-Control-Allow-Origin *;
default_type application/json;
return 200 '{"m.homeserver": {"base_url": "https://matrix.depeuter.dev"}}';
}
2024-01-21 16:57:46 +01:00
}
2023-10-16 21:24:46 +02:00
}