diff --git a/Vagrantfile b/Vagrantfile index 421c910..b76b6ca 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -41,7 +41,7 @@ Vagrant.configure("2") do |config| # within the machine from a port on the host machine. In the example below, # accessing "localhost:8080" will access port 80 on the guest machine. # NOTE: This will enable public access to the opened port - config.vm.network "forwarded_port", guest: 80, host: 8000 + config.vm.network "forwarded_port", guest: 80, host: 8080 config.vm.network "forwarded_port", guest: 443, host: 8443 config.vm.network "forwarded_port", guest: 3000, host: 8300 @@ -130,4 +130,10 @@ Vagrant.configure("2") do |config| }, }.deep_merge(secrets); end + + config.vm.provision "shell", inline: <<~SHELL + cp -a /etc/openresty/. /vagrant/openresty + rm -rf /etc/openresty + ln -s /vagrant/openresty /etc/openresty + SHELL end