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 [ return [
'domain' => 'lefuturiste.fr', 'domain' => 'lefuturiste.fr',
'modules' => [ 'modules' => [
'modules' => [], 'modules' => [
'alias' => ['web-utils', 'utils', 'help-utils', 'help-modules', 'modules-list']
],
'random' => [], 'random' => [],
'date' => [ 'date' => [
'alias' => ['printdate'] 'alias' => ['printdate']

View file

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

View file

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