Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .lando.brave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ services:
# For PHPStorm, which supports automatic configuration switching
# for multiple remote servers.
PHP_IDE_CONFIG: "serverName=appserver"
LANDO_REMOTE_ASSETS_URL: "brave.wpacc01.yard.nl"
config:
php: ./vendor/yard/lando-brave/provision/php/php.ini
database:
Expand Down
6 changes: 6 additions & 0 deletions provision/nginx/multisite-subdomain-subdirectory.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ rewrite ^/[_0-9a-zA-Z-]+(/wp-.*) /wp$1 last;
rewrite ^/[_0-9a-zA-Z-]+(/.*\.php)$ /wp$1 last;
}

location ~ ^/app/uploads/(.*) {
if (!-e $request_filename){
rewrite ^/app/uploads/(.*)$ "{{LANDO_REMOTE_ASSETS_URL}}/app/uploads/$1" redirect;
}
}

location = /favicon.ico {
log_not_found off;
access_log off;
Expand Down