larrabee / freeipa-password-reset

Self-service password reset app for FreeIPA
GNU General Public License v3.0
88 stars 30 forks source link

how to change from listening on 127.0.0.1:8000 #42

Closed lorenzohuerta closed 4 years ago

lorenzohuerta commented 4 years ago

i am trying to debug some remote connectivity that i believe is breaking because the tool is trying to connect to 127.0.0.1:8000 , is it possible to change this config?

larrabee commented 4 years ago

Hello. If you want to run server listen on all interfaces you should change systemd unit (file service/ldap-passwd-reset.service) from

ExecStart=/opt/data/IPAPasswordReset/virtualenv/bin/python /opt/data/IPAPasswordReset/PasswordReset/manage.py runserver

to

ExecStart=/opt/data/IPAPasswordReset/virtualenv/bin/python /opt/data/IPAPasswordReset/PasswordReset/manage.py runserver 0.0.0.0:8000
lorenzohuerta commented 4 years ago

cool thanks!