瀏覽代碼

port mapping work

tags/v1.5.4
Jonathan Cobb 4 年之前
父節點
當前提交
e2921427d3
共有 1 個文件被更改,包括 2 次插入15 次删除
  1. +2
    -15
      Vagrantfile

+ 2
- 15
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|


Loading…
取消
儲存