|
@@ -31,25 +31,12 @@ |
|
|
# Set the `BUBBLE_PORT` environment variable to another port, and Bubble will listen on |
|
|
# Set the `BUBBLE_PORT` environment variable to another port, and Bubble will listen on |
|
|
# that port instead. |
|
|
# 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| |
|
|
Vagrant.configure("2") do |config| |
|
|
config.vm.box = "ubuntu/focal64" |
|
|
config.vm.box = "ubuntu/focal64" |
|
|
|
|
|
|
|
|
|
|
|
# Forward ports |
|
|
port = ENV['BUBBLE_PORT'] || 8090 |
|
|
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 |
|
|
# Update system |
|
|
config.vm.provision :shell do |s| |
|
|
config.vm.provision :shell do |s| |
|
|