From e2921427d36e4726e5bfb654c652b683fc9d2fd6 Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Wed, 9 Dec 2020 19:31:48 -0500 Subject: [PATCH] port mapping work --- Vagrantfile | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index db2f2798..742ad407 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -31,25 +31,12 @@ # Set the `BUBBLE_PORT` environment variable to another port, and Bubble will listen on # that port instead. # -# ### BUBBLE_PUBLIC_PORT -# By default, Vagrant will only expose the Bubble API port (8090 or whatever BUBBLE_PORT -# is set to) as listening on 127.0.0.1 -# If you want the Bubble API port to be listening on all addresses (bind to 0.0.0.0) -# then set the BUBBLE_PUBLIC_PORT environment variable to any value except 'false' -# Vagrant.configure("2") do |config| config.vm.box = "ubuntu/focal64" + # Forward ports port = ENV['BUBBLE_PORT'] || 8090 - - # You can access the launcher on port 8090 (or BUBBLE_PORT) but only on 127.0.0.1 - # If you want to allow outside access to port 8090 (listen on 0.0.0.0), use the version below - if not ENV.include? 'BUBBLE_PUBLIC_PORT' or ENV['BUBBLE_PUBLIC_PORT'] == 'false' then - config.vm.network "forwarded_port", guest: port, host: port, host_ip: "127.0.0.1" - else - # Anyone who can reach port 8090 on this system will be able to access the launcher - config.vm.network "forwarded_port", guest: port, host: port - end + config.vm.network "forwarded_port", guest: port, host: port # Update system config.vm.provision :shell do |s|