Skip to content

Commit

Permalink
Removed default AMS farm from enabled farms (#15)
Browse files Browse the repository at this point in the history
* Removed default ams publish farm from enabled farms

* Set executable bit
  • Loading branch information
rbotha78 authored Mar 11, 2023
1 parent b08d761 commit 0cf7b56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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 \
Expand Down

0 comments on commit 0cf7b56

Please sign in to comment.