mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Update nginx.conf
This commit is contained in:
parent
e440ab98c6
commit
5fb5480446
1 changed files with 9 additions and 0 deletions
|
@ -58,6 +58,15 @@ location ^~ __PATH__/ {
|
||||||
# Remove X-Powered-By, which is an information leak
|
# Remove X-Powered-By, which is an information leak
|
||||||
fastcgi_hide_header X-Powered-By;
|
fastcgi_hide_header X-Powered-By;
|
||||||
|
|
||||||
|
# Add .mjs as a file extension for javascript
|
||||||
|
# Either include it in the default mime.types list
|
||||||
|
# or include you can include that list explicitly and add the file extension
|
||||||
|
# only for Nextcloud like below:
|
||||||
|
include mime.types;
|
||||||
|
types {
|
||||||
|
text/javascript js mjs;
|
||||||
|
}
|
||||||
|
|
||||||
# Specify how to handle directories -- specifying `/nextcloud/index.php$request_uri`
|
# Specify how to handle directories -- specifying `/nextcloud/index.php$request_uri`
|
||||||
# here as the fallback means that Nginx always exhibits the desired behaviour
|
# here as the fallback means that Nginx always exhibits the desired behaviour
|
||||||
# when a client requests a path that corresponds to a directory that exists
|
# when a client requests a path that corresponds to a directory that exists
|
||||||
|
|
Loading…
Add table
Reference in a new issue