Merge
This commit is contained in:
@@ -131,6 +131,16 @@ http {
|
||||
# This module is currently not supported.
|
||||
#pagespeed off;
|
||||
|
||||
# Set .mjs and .wasm MIME types
|
||||
# Either include it in the default mime.types list
|
||||
# and include that list explicitly or add the file extension
|
||||
# only for Nextcloud like below:
|
||||
include mime.types;
|
||||
types {
|
||||
text/javascript mjs;
|
||||
application/wasm wasm;
|
||||
}
|
||||
|
||||
location / {
|
||||
rewrite ^ /index.php;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Need to figure out how to get this working with nginx-proxy
|
||||
# Need to figure out how to get this working with nginx-proxy
|
||||
|
||||
# This file is for the /change/socket.io and /change/peer paths
|
||||
location ~ ^/change/(socket\.io|peer) {
|
||||
|
||||
@@ -83,6 +83,12 @@ location ~ \.(otf|woff2?)$ {
|
||||
access_log off; # Optional: Don't log access to assets
|
||||
}
|
||||
|
||||
location ~ \.(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$ {
|
||||
try_files $uri /index.php$request_uri;
|
||||
# Optional: Don't log access to other assets
|
||||
access_log off;
|
||||
}
|
||||
|
||||
# Rule borrowed from `.htaccess`
|
||||
location /remote {
|
||||
return 301 /remote.php$request_uri;
|
||||
|
||||
Reference in New Issue
Block a user