When i tried to install the OpenProject using Docker One Container per Process method, i am getting the SSL protocol error. Where to update the environment variables to disable the HTTPS and HSTS.
There has been no reply on this, I cannot use the docker image since the upgrade to v12.2.1 is getting redirected to HTTPS even after setting the environment variable as below. I have tried setting up the .env file, but still no luck. Can someone please let me know the exact process to disable the HTTPS?
I am using the one container per process docker method
The link that you have provided is for setting the Openproject via Package installation, but i am setting up Openproject as Docker. Which command i have to execute in the web container and how to do it as i am new to docker.
I am aware of that and I thought you know that you are able to enter a container and execute a command, that is why i wrote INSIDE of the web container
please see here how to execute a command in the docker container
When i try to run the command within the web container i get the below error
─ docker exec -it compose_web_1 /bin/bash (THE COMMAND THAT I EXECUTED TO GET IN THE CONTAINER)
root@57b70c8f5c35:/app# openproject config:set SERVER_PROTOCOL_FORCE_HTTPS="true"
bash: openproject: command not found
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.cron.environment.OPENPROJECT_HTTPS contains false, which is an invalid type, it should be a string, number, or a null
services.seeder.environment.OPENPROJECT_HTTPS contains false, which is an invalid type, it should be a string, number, or a null
services.web.environment.OPENPROJECT_HTTPS contains false, which is an invalid type, it should be a string, number, or a null
services.worker.environment.OPENPROJECT_HTTPS contains false, which is an invalid type, it should be a string, number, or a null
Replies (11)
There has been no reply on this, I cannot use the docker image since the upgrade to v12.2.1 is getting redirected to HTTPS even after setting the environment variable as below. I have tried setting up the .env file, but still no luck. Can someone please let me know the exact process to disable the HTTPS?
I am using the one container per process docker method
Hi Vipin,
please read here for the solution, you just have to execute the command inside the web container
https://community.openproject.org/projects/openproject/work_packages/43714/activity#activity-5
Kind regards Adam
The link that you have provided is for setting the Openproject via Package installation, but i am setting up Openproject as Docker. Which command i have to execute in the web container and how to do it as i am new to docker.
Thank you for your reply
I am aware of that and I thought you know that you are able to enter a container and execute a command, that is why i wrote INSIDE of the web container
please see here how to execute a command in the docker container
https://www.tutorialspoint.com/how-to-run-a-command-inside-docker-container
good luck
When i try to run the command within the web container i get the below error
─ docker exec -it compose_web_1 /bin/bash (THE COMMAND THAT I EXECUTED TO GET IN THE CONTAINER)
root@57b70c8f5c35:/app# openproject config:set SERVER_PROTOCOL_FORCE_HTTPS="true"
bash: openproject: command not found
Hi Vipin,
the command you're using is for the packaged installation only, which has a command line wrapper
openproject
allowing you to set configuration etc.)For docker, you need to set it using ENV variables either in an env file or other means. See https://www.openproject.org/docs/installation-and-operations/installation/docker/#initial-configuration for more information, but please note this guide applies to the all-in-one container and docker-compose alike.
Best
Oliver
I have tried with setting the ENV variables via the env file, but still the HTTPS is not getting disabled. Please help with exact steps.
Hi,
I think you have to add it to the x-op-app part like below with false and not true
could you try this please?
It didnt work as it expects a string
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.cron.environment.OPENPROJECT_HTTPS contains false, which is an invalid type, it should be a string, number, or a null
services.seeder.environment.OPENPROJECT_HTTPS contains false, which is an invalid type, it should be a string, number, or a null
services.web.environment.OPENPROJECT_HTTPS contains false, which is an invalid type, it should be a string, number, or a null
services.worker.environment.OPENPROJECT_HTTPS contains false, which is an invalid type, it should be a string, number, or a null
Hi Vipin
i changed the code snippet above to show "false" as string
Please be sure to only add the OPENPROJECT_HTTPS at:
x-op-app:
environment:
Thanks it works now