Content
SLL Problem with Docker Image
Added by Dirk Reimann over 3 years ago
Hope someone is able and so kind as to help...
I'm trying to setup open project running on docker in (l)ubunthu 20.04 along with an owncloud server on apache2 with the later two running directly on the machine (not inside an docker image).
Owncloud is working fine using https and ssl. Cert is installed (lets encrpyt) and is auto-refreshed as far as I can remember.
Probably my problem is related to this entry in "sites-enabled" of my apache2:
<VirtualHost *:443>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
SSLEngine on
# Pfad zu den Webinhalten
DocumentRoot /var/www/html/
ServerName xx.xx.xx
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/x.x.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/x.x.de/privkey.pem
</VirtualHost>
I tried to run the docker image (all in one to keep it simple for a start):
docker run -d -p 8080:80 --name openproject -e SECRET_KEY_BASE=secret \
-v /var/lib/openproject/pgdata:/var/openproject/pgdata \
-v /var/lib/openproject/assets:/var/openproject/assets \
openproject/community:11
That worked so far... LOCALLY... Then I added:
-e OPENPROJECT_RAILS__RELATIVE__URL__ROOT=/openproject \
-e OPENPROJECT_RAILS__FORCE__SSL=true \
No luck anymore... Not even locally... I assume that this is related to that ssl.conf. Once I leave out -e OPENPROJECT_RAILS__FORCE__SSL=true \ it starts working locally again. And openproject is available at "localhost:8080/openproject".
I tried all veriations of the given virtual host configuration but I can't get it to work because I'm just not that deep into linux and apache. I tried to include the sll.conf part - no luck.
I really hope someone is able to help getting this to work. I assume for someone understanding this its quite easy.
Replies (3)
Got it working... I was able to frankenstein the given examples and my ssl.conf ... Finally...
Hi!
Can you post how you have solved the problem? I tried to install openproject on a Ubuntu-Server 20.04 with installed Apache2 and letsencrypt. But I didn't managed it to get openproject running. Now I'm thinking to try a docker installation of openproject.
Here the link to my problem: https://community.openproject.org/topics/13587
I'm running docker on Windows 10 and using it to manage a Python Airflow instance that handles scheduling python scripts for me. I have a python script that fetches data from the web. When I run this script on my host machine I get no issues. But when I run this script in docker it throws an SSL error saying SSL certificate verify failed.
www.myaarpmedicare.com