Skip to content

Commit

Permalink
web-serving: fix startup of web-server as rootless
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-zero committed Nov 27, 2023
1 parent c9d7584 commit 07ec9a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions benchmarks/web-serving/web_server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ RUN mkdir /elgg_data
RUN chmod a+rw /elgg_data

# Copy over the Nginx Server configuration
COPY files/nginx_sites_avail_pt.append /tmp/
COPY files/nginx_sites_avail_tls.append /tmp/
RUN rm /etc/nginx/sites-enabled/default
COPY files/nginx_sites_avail_pt /etc/nginx/sites-available/
COPY files/nginx_sites_avail_tls /etc/nginx/sites-available/


RUN service nginx restart
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/web-serving/web_server/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ sed -i -e"s/mysql_server/${DB_SERVER_IP}/" elgg/elgg-config/settings.php
sed -i -e"s/'memcache_server'/'${MEMCACHE_SERVER_IP}'/" elgg/elgg-config/settings.php

if [ $PROTOCOL == 'https' ]; then
cat /tmp/nginx_sites_avail_tls.append >> /etc/nginx/sites-available/default
ln -sf ../sites-available/nginx_sites_avail_tls /etc/nginx/sites-enabled/cloudsuite
elif [ $PROTOCOL == 'http' ]; then
cat /tmp/nginx_sites_avail_pt.append >> /etc/nginx/sites-available/default
ln -sf ../sites-available/nginx_sites_avail_pt /etc/nginx/sites-enabled/cloudsuite
fi

FPM_CHILDREN=${5:-4}
Expand Down

0 comments on commit 07ec9a2

Please sign in to comment.