Create a local config file in the project's box
directory, called local.config.yml
.
Copy the vagrant_synced_folders
segment from box/config.yml
and paste into box/local.config.yml
:
vagrant_synced_folders:
# Set the local_path for the first synced folder to `.`.
- local_path: .
destination: /var/www/my-project
type: nfs
Below that, add a new synced folder configuration as follows:
# Set keys folder.
- local_path: local/keys
destination: /var/www/keys
type: rsync
create: true
options_override:
owner: www-data
group: www-data
rsync__args: [
"--chmod=Dugo=rwx,Fu=r",
]