inveniosoftware / troubleshooting

DEPRECATED - Use the forum instead:
https://invenio-talk.web.cern.ch
5 stars 4 forks source link

How to change IP and port? #50

Open mujie-dm opened 5 years ago

mujie-dm commented 5 years ago

Hi, I'm using Invenio 3 and install it in live server. It's not possible to visit https://127.0.0.1:5000/. I want change to public IP and to normal port (80). It is possible?

Thanks for your help.

lnielsen commented 5 years ago

It's possible to run on HTTPS (443) and with a redirect from port 80 to 443. A full production example is in the docker-compose files.

Do check out these guides: https://invenio.readthedocs.io/en/latest/architecture/infrastructure.html https://github.com/inveniosoftware/training/tree/v3.1/03-infrastructure-tour

What you have running on port 5000 is your application server, in front of that you need a proxy (e.g. nginx). Also see Flask documentation on how to deploy an Flask python application (which Invenio is)

http://flask.pocoo.org/docs/1.0/deploying/