Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ebcf96ed2 | ||
|
|
846da7bcf9 | ||
|
|
ae7240b2f4 |
@@ -6,7 +6,7 @@ all: build push
|
|||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
docker build -t $(IMAGE_NAME) -f Dockerfile ../
|
docker build -t $(IMAGE_NAME) -f Dockerfile ../../
|
||||||
|
|
||||||
.PHONY: push
|
.PHONY: push
|
||||||
push:
|
push:
|
||||||
|
|||||||
@@ -14,6 +14,11 @@ events {
|
|||||||
http {
|
http {
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
types {
|
||||||
|
text/plain asc;
|
||||||
|
}
|
||||||
|
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
client_max_body_size 1m;
|
client_max_body_size 1m;
|
||||||
sendfile on;
|
sendfile on;
|
||||||
@@ -38,6 +43,11 @@ http {
|
|||||||
return 200 '{"status":"OK"}';
|
return 200 '{"status":"OK"}';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /.well-known/ {
|
||||||
|
alias /srv/http/public/well-known/;
|
||||||
|
default_type text/plain;
|
||||||
|
}
|
||||||
|
|
||||||
location /.well-known/matrix/server {
|
location /.well-known/matrix/server {
|
||||||
default_type application/json;
|
default_type application/json;
|
||||||
add_header "Access-Control-Allow-Origin" *;
|
add_header "Access-Control-Allow-Origin" *;
|
||||||
|
|||||||
Reference in New Issue
Block a user