Merge pull request #115 from ekimekim/mike/config-fixes

A grab-bag of fixes that came out of the recent test on toodles
pull/118/head
Mike Lang 5 years ago committed by GitHub
commit e5c5eb4090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -118,7 +118,7 @@
// The spreadsheet id and worksheet names for sheet sync to act on // The spreadsheet id and worksheet names for sheet sync to act on
sheet_id:: "your_id_here", sheet_id:: "your_id_here",
worksheets:: ["Tech Test & Preshow"] + ["Day %d" % n for n in std.range(1, 7)], worksheets:: ["Tech Test & Pre-Show"] + ["Day %d" % n for n in std.range(1, 7)],
// Now for the actual docker-compose config // Now for the actual docker-compose config
@ -237,6 +237,7 @@
// Args for the sheetsync // Args for the sheetsync
command: [ command: [
"--backdoor-port", std.toString($.backdoor_port), "--backdoor-port", std.toString($.backdoor_port),
"--allocate-ids",
$.db_connect, $.db_connect,
"/etc/wubloader-creds.json", "/etc/wubloader-creds.json",
$.edit_url, $.edit_url,

@ -17,7 +17,7 @@ LOCATIONS=$(
# all services have metrics under /metrics/SERVICE, except for thrimebletrimmer # all services have metrics under /metrics/SERVICE, except for thrimebletrimmer
generate_location "/metrics/$name" "http://$name:$port/metrics" generate_location "/metrics/$name" "http://$name:$port/metrics"
done done
[ -n "$THRIMBLETRIMMER" ] && echo -e "\t\tlocation = / { return 301 \$scheme://\$host/thrimbletrimmer/dashboard.html; }\n\t\tlocation /thrimbletrimmer { }" [ -n "$THRIMBLETRIMMER" ] && echo -e "\t\tlocation = / { return 301 /thrimbletrimmer/dashboard.html; }\n\t\tlocation /thrimbletrimmer { }"
) )
cat > /etc/nginx/nginx.conf <<EOF cat > /etc/nginx/nginx.conf <<EOF
@ -33,6 +33,7 @@ http {
listen 80; listen 80;
gzip on; gzip on;
gzip_comp_level 9; gzip_comp_level 9;
absolute_redirect off;
$LOCATIONS $LOCATIONS
} }
} }

Loading…
Cancel
Save