Allow editing of nginx conf files from host
This commit is contained in:
Vendored
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user