Tibo De Peuter
0d99fe513f
Some checks failed
Publish Docker image / Push Docker image to Docker registry (push) Failing after 28s
34 lines
854 B
Nginx Configuration File
34 lines
854 B
Nginx Configuration File
user nginx;
|
|
worker_processes 1;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
server {
|
|
listen 0.0.0.0:12345;
|
|
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
}
|
|
|
|
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"}';
|
|
}
|
|
|
|
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"}}';
|
|
}
|
|
}
|
|
}
|