Hello everyone,
I’m trying to deploy OpenConceptLab on a local server following the instructions available on GitHub.
I have a CENTOS 7 server with both dockers working fine on DEV. When I try to run OCL_WEB in PRODUCTION mode as per the instructions (https://github.com/OpenConceptLab/ocl_web) with “docker-compose -f docker-compose.yml up” I keep getting a “BAD REQUEST (400)” response when I try to access the app. FirewallD, IPTABLES and CELINUX are DISABLED or on PERMISSIVE mode.
StackOverflow mentions that ERROR 400 on Django means that the host in not among the ALLOWED_HOSTS, but despite of adding them on the config.settings, it still won’t work.
This issue has kept me from sleeping more than I would like to admit and I’m running out of ideas.
I recreated the error just now and no error log is generated, nor on the oclapi or the ocl_web side. Since the connection is initially rejected no log seems to be generated on either side.
I’m running the code from a clean master. Simply git clone … && docker-compose -f …
@ehebel, we don’t really support setting up OCL on-site for production use, thus it’s not being properly documented (kept up to date and tested), but you could try our production config at:
.env is encrypted so you need to delete it and create your own as described in READMEs.
If you run oclapi and oclweb on the same machine the OCL_API_HOST in .env in oclweb should be set to http://localhost:8000. Also make sure OCL_API_TOKEN is the same in oclapi and oclweb.