Open Milor123 opened 7 months ago
Hi that is completely normal the new version of lollms added lots of security measures for remote access you need to do the following: be sure you have a secure system (you need a secure tunnel between your PC and your phone or other PC don't open up your server to the outside via a port forwarding or something or this will be considered an unacceptable risk once you are sure that you are secure, you can add your interface to the cors accepted sources in the configuration file local_config.yaml in configs directory inside your personal folder you can put 0.0.0.0 in host then you need to add all your interfaces to allowed_origins for example if your PC is serving on an ip address like 192.168.1.2 then you need to add to the list : http://192.168.1.2:9600/ I am sorry for that but I don't want to be responsible of people getting attacked so by default security is at its maximum to avoid getting hacked because of exposed lollms but if you have a secure system, you can force it to open up you just set force_accept_remote_access to true
Code execution is completely blocked when in remote use even if you force remote access. I hope this answers your question
Hi that is completely normal the new version of lollms added lots of security measures for remote access you need to do the following: be sure you have a secure system (you need a secure tunnel between your PC and your phone or other PC don't open up your server to the outside via a port forwarding or something or this will be considered an unacceptable risk once you are sure that you are secure, you can add your interface to the cors accepted sources in the configuration file local_config.yaml in configs directory inside your personal folder you can put 0.0.0.0 in host then you need to add all your interfaces to allowed_origins for example if your PC is serving on an ip address like 192.168.1.2 then you need to add to the list : http://192.168.1.2:9600/ I am sorry for that but I don't want to be responsible of people getting attacked so by default security is at its maximum to avoid getting hacked because of exposed lollms but if you have a secure system, you can force it to open up you just set force_accept_remote_access to true
Code execution is completely blocked when in remote use even if you force remote access. I hope this answers your question
Thank you very much for you reply, i am trying doing it, for use with a private VPN (zerotierone), but i am beginer in it. Question
How should i change the force_accept_remote_access
in the python files or enviroments ?? I am not sure
I try add the 192.168.8.199:9600 to the local_config.yaml but i get the same problem, surely need change the option to true like you show me.
I try replace all files with force_accept_remote_access: false
to force_accept_remote_access: true
and also I've changed to force_accept_remote_access: false
in the ../personal_data/configs/local_config.yaml
out of the cloned folder.
but get the same bootloop result.
and also add to the origin
nothing works bro :/, it keep me in bootloop
Hi that is completely normal the new version of lollms added lots of security measures for remote access you need to do the following: be sure you have a secure system (you need a secure tunnel between your PC and your phone or other PC don't open up your server to the outside via a port forwarding or something or this will be considered an unacceptable risk once you are sure that you are secure, you can add your interface to the cors accepted sources in the configuration file local_config.yaml in configs directory inside your personal folder you can put 0.0.0.0 in host then you need to add all your interfaces to allowed_origins for example if your PC is serving on an ip address like 192.168.1.2 then you need to add to the list : http://192.168.1.2:9600/ I am sorry for that but I don't want to be responsible of people getting attacked so by default security is at its maximum to avoid getting hacked because of exposed lollms but if you have a secure system, you can force it to open up you just set force_accept_remote_access to true
Code execution is completely blocked when in remote use even if you force remote access. I hope this answers your question
I have the same problem, I tried it, but the problem still exists
Hey @tomy2502 and @Milor123 , I just came across this issue when I was experiencing the same problem. After reviewing the errorlog it mention that you have to add the server ip to the allowed_origins parameter, not the IP where the remote connection is originating from. Like so:
allowed_origins:
This solved it for me.
ps. The interface is not great on a smartphone.
Expected Behavior
Connect throught my local ip, in my case 192.168.8.199:9600 and that the webui should works normally
Current Behavior
when try access from my pc or my android phone, using my local ip, in my case 192.168.8.199, it keep in bootloop, however when use the 127.0.0.1 it works well.
Errors:
Steps to Reproduce
Install it in my Manjaro using conda (note i try reinstall all and delete data folder again but not works)
python app.py --host 0.0.0.0
Short Error logs