From 0cf7b5628ee80165d6f4b4715f507043cb3ced42 Mon Sep 17 00:00:00 2001 From: Robert Botha Date: Sat, 11 Mar 2023 13:31:59 +0000 Subject: [PATCH] Removed default AMS farm from enabled farms (#15) * Removed default ams publish farm from enabled farms * Set executable bit --- scripts/setup.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index b506501..19f8d95 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -20,7 +20,7 @@ if [ "${TARGETARCH}" = "arm64" ]; then DISPARCH=aarch64 fi -# Create default docroots +#create default docroots mkdir -p /mnt/var/www/html chown apache:apache /mnt/var/www/html @@ -37,16 +37,17 @@ ln -s /etc/httpd/conf.d/available_vhosts/aem_publish.vhost /etc/httpd/conf.d/ena ln -s /etc/httpd/conf.d/available_vhosts/aem_flush.vhost /etc/httpd/conf.d/enabled_vhosts/aem_flush.vhost ln -s /etc/httpd/conf.d/available_vhosts/aem_health.vhost /etc/httpd/conf.d/enabled_vhosts/aem_health.vhost -#create and link up default enabled vhosts +#create and link up default enabled farms mkdir /etc/httpd/conf.dispatcher.d/enabled_farms ln -s /etc/httpd/conf.dispatcher.d/available_farms/000_ams_catchall_farm.any /etc/httpd/conf.dispatcher.d/enabled_farms/000_ams_catchall_farm.any ln -s /etc/httpd/conf.dispatcher.d/available_farms/001_ams_author_flush_farm.any /etc/httpd/conf.dispatcher.d/enabled_farms/001_ams_author_flush_farm.any ln -s /etc/httpd/conf.dispatcher.d/available_farms/001_ams_publish_flush_farm.any /etc/httpd/conf.dispatcher.d/enabled_farms/001_ams_publish_flush_farm.any ln -s /etc/httpd/conf.dispatcher.d/available_farms/002_ams_author_farm.any /etc/httpd/conf.dispatcher.d/enabled_farms/002_ams_author_farm.any -ln -s /etc/httpd/conf.dispatcher.d/available_farms/002_ams_publish_farm.any /etc/httpd/conf.dispatcher.d/enabled_farms/002_ams_publish_farm.any +#ln -s /etc/httpd/conf.dispatcher.d/available_farms/002_ams_publish_farm.any /etc/httpd/conf.dispatcher.d/enabled_farms/002_ams_publish_farm.any #set up sample configs ln -s /etc/httpd/conf.dispatcher.d/available_farms/100_weretail_publish_farm.any /etc/httpd/conf.dispatcher.d/enabled_farms/100_weretail_publish_farm.any + #set up dispatcher mkdir -p /tmp/dispatcher @@ -58,8 +59,7 @@ tar zxvf dispatcher.tar.gz cp -v dispatcher-apache2.4-4.3.5.so /etc/httpd/modules/mod_dispatcher.so -#set up HA proxy -# Setup SSL +#set up haproxy SSL mkdir -p /etc/ssl/docker && \ openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=GB/ST=London/L=London/O=Adobe/CN=localhost" \ -keyout /etc/ssl/docker/localhost.key \