From 80237f76e6ec48ea8f382dce0cda18d0c534e070 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Wed, 16 Aug 2023 11:07:26 -0400 Subject: [PATCH] Allow editing of nginx conf files from host --- Vagrantfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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