Skip to content

Commit

Permalink
Merge pull request #193 from wearepal/caddyfile-update
Browse files Browse the repository at this point in the history
first step in adding new annotation service
  • Loading branch information
paulthatjazz authored Nov 10, 2023
2 parents c370a0e + 4b4a69a commit 252eee0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
19 changes: 10 additions & 9 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
$ADDRESS

reverse_proxy /geoserver* geoserver:8080

reverse_proxy web:3000 {
lb_try_duration 30s
$LMTADDRESS {

reverse_proxy /geoserver* geoserver:8080

reverse_proxy web:3000 {
lb_try_duration 30s
}

encode gzip
log
}

encode gzip
log
8 changes: 7 additions & 1 deletion bin/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ fi

if ! docker config inspect landscapes_caddyfile &>/dev/null
then
read -p "Enter your domain name, e.g. landscapes.your-university.ac.uk [localhost]: " ADDRESS
read -p "Enter your domain name, e.g. your-university.ac.uk [localhost]: " ADDRESS
read -p "Enter your landscape modelling tool subdomain name, e.g. landscapes: " LMTSUBDOM
read -p "Enter your annotation tool subdomain name, e.g. annotations: " ANNOSUBDOM
export ADDRESS="${ADDRESS:-localhost}"
export LMTSUBDOM="${LMTSUBDOM}"
export ANNOSUBDOM="${ANNOSUBDOM}"
export LMTADDRESS="${LMTSUBDOM}.${ADDRESS}"
export ANNOADDRESS="${ANNOSUBDOM}.${ADDRESS}"
envsubst < Caddyfile | docker config create landscapes_caddyfile - &>/dev/null
fi

Expand Down

0 comments on commit 252eee0

Please sign in to comment.