Hi friends,
I created a demo application on a PC.
My environment:
- Windows 10
- Vagrant 2.2.18
- VirtualBox 6.1
- release-core FOLIO Iris Release (12 July 2021, Hot Fix #2)
I can use the local address localhost:3000
and the account (diku_admin/admin
) to log in normally, and everything looks fine.
Problems encountered:
In order to be able to access my local web service on the public network, I used frp
(a reverse proxy program) and configured it accordingly.
I can access the local FOLIO service through http://My-server-domain-name:81
, and I can enter the login page, but I cannot log in to the system.
I observed through chrome devtools that this problem is caused by the inaccessibility of the request (okapi url http://localhost:9130
).
I tried to modify /etc/folio/okapi/okapi.conf,
but it still doesn’t work.
I tried to configure Vagrantfile
with the method on the Internet, but it didn’t work.
Vagrant.configure("2") do |config|
config.vm.box = "myfolio"
config.vm.provision "shell", env: {
"OKAPI" => "http://folio-okapi.my-server-domain:81"
}, inline: <<-SHELL
set -e
systemctl stop okapi-deploy 2>/dev/null || systemctl stop okapi
sleep 10
docker ps -a -q | xargs --no-run-if-empty docker rm -f
rm -rf /etc/folio/stripes/output
/etc/folio/stripes/build-run
systemctl start okapi-deploy 2>/dev/null || systemctl start okapi
SHELL
end
Here, okapi url http://folio-okapi.my-server-domain:81
is mapping to localhost:9130
.
Can anyone give me some advice and help, thank you very much.
By the way, I am a software engineer from Wuhan, China. I am very interested in the FOLIO project.
I am currently studying and researching it.
I hope that I can also contribute to the project in the near future.
Beast Regards,
Kai