diff --git a/codepot/docker/readme.txt b/codepot/docker/README.md similarity index 60% rename from codepot/docker/readme.txt rename to codepot/docker/README.md index 2f3dd9f7..fd97385a 100644 --- a/codepot/docker/readme.txt +++ b/codepot/docker/README.md @@ -1,3 +1,6 @@ +If you require the root privilege to build a docker image, specify sudo in DOCKER. + make rocky8 DOCKER="sudo docker" + Run the service docker run -dit --restart unless-stopped --name codepot -p 7000:80 codepot:ubnt20.04 diff --git a/codepot/docker/httpd-fg.sh b/codepot/docker/httpd-fg.sh index 3c20ed57..ac989508 100755 --- a/codepot/docker/httpd-fg.sh +++ b/codepot/docker/httpd-fg.sh @@ -104,5 +104,9 @@ grep -F -q 'env[CODEPOT_CONFIG_FILE]' /etc/php-fpm.d/www.conf || { echo "Configuring to listen on the port [$SERVICE_PORT]" sed -r -i "s|^Listen[[:space:]]+.*|Listen ${SERVICE_PORT}|g" /etc/httpd/conf/httpd.conf +## Enable DAV to work with Apache running HTTP through SSL hardware (problem description) +## by replacing https: with http: in the Destination header: +##RequestHeader edit Destination ^https: http: early + php-fpm exec httpd -DFOREGROUND