change fancyindex to built-in index

This commit is contained in:
creme 2021-08-04 13:57:17 +00:00
parent 78a076f54b
commit 0a8e9b4ea2
2 changed files with 18 additions and 11 deletions

View File

@ -78,13 +78,15 @@ server {
## matrix
location /.well-known/matrix/support {
add_header Access-Control-Allow-Origin "$DO_CORS";
# add_header Access-Control-Allow-Origin "$DO_CORS";
add_header Access-Control-Allow-Origin "*";
add_header Content-Type application/json;
return 200 '{"admins": [{"matrix_id": "@creme:envs.net", "email_address": "hostmaster@envs.net", "role": "admin"}]}';
}
location /.well-known/matrix/ {
add_header Access-Control-Allow-Origin "$DO_CORS";
# add_header Access-Control-Allow-Origin "$DO_CORS";
add_header Access-Control-Allow-Origin "*";
add_header Content-Type application/json;
return 200 '{"m.server": "matrix.envs.net:443", "m.homeserver": {"base_url": "https://matrix.envs.net"}, "m.integrations": {"managers": [{"ui_url": "https://dimension.envs.net/riot", "api_url": "https://dimension.envs.net/api/v1/scalar"}, {"ui_url": "https://scalar.vector.im/", "api_url": "https://scalar.vector.im/api"}]}, "m.integrations_widget": {"url": "https://dimension.envs.net/riot", "data": {"api_url": "https://dimension.envs.net/api/v1/scalar"}}}';
}
@ -118,8 +120,10 @@ server {
alias /home/$user/public_html$user_uri;
index index.html index.php index.cgi index.py index.sh index.pl index.lua;
fancyindex on;
fancyindex_exact_size off;
autoindex on;
autoindex_exact_size off;
#fancyindex on;
#fancyindex_exact_size off;
add_header X-Frame-Options SAMEORIGIN;
error_page 404 /~$user/404.html;
@ -177,13 +181,14 @@ server {
location /matrix {
return 301 https://envs.net/chat/matrix/;
}
# matrix documentation
location /matrix/doc {
return 301 https://envs.net/chat/matrix/doc/;
location /matrix/help {
return 301 https://matrix-help.envs.net/;
}
location /chat/matrix/doc {
alias /var/www/docs/matrix-dokumentation/public/;
index index.html;
return 301 https://matrix-help.envs.net/;
}
location /chat/matrix/help {
return 301 https://matrix-help.envs.net/;
}
# include php and ssi

View File

@ -7,8 +7,10 @@ ssi on;
error_page 404 /404.html;
fancyindex on;
fancyindex_exact_size off;
autoindex on;
autoindex_exact_size off;
#fancyindex on;
#fancyindex_exact_size off;
location / {
try_files $uri $uri.html $uri/ @extensionless-php;