mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
Vagrantfile: Enable public network for bridged networking
When testing OpenID Connect, I found that it wasn't working in a VM with NAT port forwarding. However, vagrant can use bridged networking instead. When the vagrant box is brought up, the user will be prompted for which network interface to bridge. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
71913580db
commit
bce25f465f
9
Vagrantfile
vendored
9
Vagrantfile
vendored
@ -6,8 +6,7 @@ require 'etc'
|
||||
|
||||
Vagrant.configure(2) do |config|
|
||||
config.vm.box = "freedombox/freedombox-testing-dev"
|
||||
config.vm.network "forwarded_port", guest: 443, host: 4430
|
||||
config.vm.network "forwarded_port", guest: 445, host: 4450
|
||||
config.vm.network "public_network"
|
||||
config.vm.synced_folder ".", "/freedombox", owner: "plinth", group: "plinth"
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
vb.cpus = Etc.nprocessors
|
||||
@ -28,7 +27,11 @@ Vagrant.configure(2) do |config|
|
||||
SHELL
|
||||
config.vm.provision "tests", run: "never", type: "shell", path: "plinth/tests/functional/install.sh"
|
||||
config.vm.post_up_message = "FreedomBox virtual machine is ready
|
||||
for development. Plinth will be available at https://localhost:4430/freedombox
|
||||
for development. To get the IP address:
|
||||
$ vagrant ssh
|
||||
$ ip address show
|
||||
|
||||
FreedomBox interface will be available at https://<ip address>/freedombox
|
||||
(with an invalid SSL certificate). To watch logs:
|
||||
$ vagrant ssh
|
||||
$ sudo freedombox-logs
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user