mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +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|
|
Vagrant.configure(2) do |config|
|
||||||
config.vm.box = "freedombox/freedombox-testing-dev"
|
config.vm.box = "freedombox/freedombox-testing-dev"
|
||||||
config.vm.network "forwarded_port", guest: 443, host: 4430
|
config.vm.network "public_network"
|
||||||
config.vm.network "forwarded_port", guest: 445, host: 4450
|
|
||||||
config.vm.synced_folder ".", "/freedombox", owner: "plinth", group: "plinth"
|
config.vm.synced_folder ".", "/freedombox", owner: "plinth", group: "plinth"
|
||||||
config.vm.provider "virtualbox" do |vb|
|
config.vm.provider "virtualbox" do |vb|
|
||||||
vb.cpus = Etc.nprocessors
|
vb.cpus = Etc.nprocessors
|
||||||
@ -28,7 +27,11 @@ Vagrant.configure(2) do |config|
|
|||||||
SHELL
|
SHELL
|
||||||
config.vm.provision "tests", run: "never", type: "shell", path: "plinth/tests/functional/install.sh"
|
config.vm.provision "tests", run: "never", type: "shell", path: "plinth/tests/functional/install.sh"
|
||||||
config.vm.post_up_message = "FreedomBox virtual machine is ready
|
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:
|
(with an invalid SSL certificate). To watch logs:
|
||||||
$ vagrant ssh
|
$ vagrant ssh
|
||||||
$ sudo freedombox-logs
|
$ sudo freedombox-logs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user