1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/matomo_ynh.git synced 2024-09-03 19:45:56 +02:00

Update nginx.conf

This commit is contained in:
ericgaspar 2021-05-17 23:36:32 +02:00
parent c9c5314939
commit f12c5ce18d
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -1,5 +1,5 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ { location ^~ __PATH__/ {
# Path to source # Path to source
alias __FINALPATH__/; alias __FINALPATH__/;
@ -65,7 +65,10 @@ location __PATH__/ {
} }
## properly display textfiles in root directory ## properly display textfiles in root directory
location ~/(.*\.md|LEGALNOTICE|LICENSE) { location ~__PATH__/(.*\.md|LEGALNOTICE|LICENSE) {
default_type text/plain; default_type text/plain;
} }
# show YunoHost panel access
include conf.d/yunohost_panel.conf.inc;
} }