fix more redirects

bookstack
micro 2 years ago
parent 6bb6aa6b4c
commit ba625e11bb

@ -48,11 +48,13 @@ server {
# serve the static content for the well known files
location /.well-known/matrix/server {
default_type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '{"m.server": "${MATRIX_HOSTNAME}:443"}';
}
location /.well-known/matrix/client {
default_type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '{"m.homeserver":{"base_url": "https://${MATRIX_HOSTNAME}"}}';
}

@ -12,8 +12,6 @@ server {
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
#include /etc/nginx/mime.types;
#default_type application/octet-stream;
gzip on;
gzip_disable "msie6";
@ -27,6 +25,10 @@ server {
# required to avoid HTTP 411: see Issue #1486 (https://github.com/dotcloud/docker/issues/1486)
chunked_transfer_encoding on;
location = / {
return 302 /s/Main_Page;
}
location / {
proxy_pass http://host.docker.internal:3000;
proxy_set_header Host $host;

Loading…
Cancel
Save