fix(QuickUpload): nginx direct access alias

This commit is contained in:
Matthieu Bessat 2021-10-03 18:27:35 +02:00
parent bb9dc0ee5d
commit f8eddfd1d5
3 changed files with 10 additions and 6 deletions

View file

@ -3,7 +3,9 @@
return [
'domain' => 'lefuturiste.fr',
'modules' => [
'modules' => [],
'modules' => [
'alias' => ['web-utils', 'utils', 'help-utils', 'help-modules', 'modules-list']
],
'random' => [],
'date' => [
'alias' => ['printdate']

View file

@ -1,4 +1,4 @@
location /file/ {
alias {{ROOT_PATH}}/tmp/quickupload;
alias {{ROOT_PATH}}/tmp/quickupload/;
autoindex off;
}

View file

@ -2,10 +2,12 @@ server {
index index.html index.php;
root {{ROOT_PATH}};
server_name {{SERVER_NAME}};
{{CUSTOM_CONFIG}}
location / {
try_files $uri $uri/ /index.php?$args;
}
{{CUSTOM_CONFIG}}
location ^~ /wp-admin {
return 403;
}