Ver código fonte

port mapping work

tags/v1.5.4
Jonathan Cobb 4 anos atrás
pai
commit
e2921427d3
1 arquivos alterados com 2 adições e 15 exclusões
  1. +2
    -15
      Vagrantfile

+ 2
- 15
Vagrantfile Ver arquivo

@@ -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|


Carregando…
Cancelar
Salvar