Discuss.FOLIO.org is no longer used. This is a static snapshot of the website as of February 14, 2023.

how to configure vagrantfile to enable external access

23 Jan '20

I have Vagrant running folio/Q1-2019 on a Centos machine but I don’t understand how to configure the vagrantfile to allow or enable external access to the folio system.

Very greatful for assistance.

/Anders Fåk
Linköping University

24 Jan '20

Hi Anders, what does your Vagrantfile look like now? We typically use the one in the folio-ansible repository here to map ports on the vagrant box to the host machine: https://github.com/folio-org/folio-ansible/blob/master/Vagrantfile

For example the following lines map 9130 and 3000 from guest to host for the prebuilt snapshot core box:
snapshot_core.vm.network “forwarded_port”, guest: 9130, host: 9130
snapshot_core.vm.network “forwarded_port”, guest: 3000, host: 3000

This should allow you to access okapi (back end) at http://localhost:9130 and stripes (web front end) at http://localhost:3000 from the host machine.


27 Jan '20

Hi Ian,
Thanks for your reply.
I have added this to the Vagrantfile:
config.vm.network “forwarded_port”, guest: 9130, host: 9130
config.vm.network “forwarded_port”, guest: 3000, host: 3000

But the result is the same.
In my browser debug I see this:
OPTIONS http://localhost:9130/_/version net::ERR_CONNECTION_REFUSED

Please note that we have started Vagrant on a Linux server without graphical interface and I am trying to get browser access to Folio from my laptop.


27 Jan '20

Hi Anders,

you need to configure the okapi url in stripes.config.js and rebuild the webpack. There are examples how to do it in the single server installation documentation and in the ansible documentation: