You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
376 B

  1. #!/bin/bash
  2. set -e
  3. PEERTUBE_CONFIG_DIR=/etc/peertube
  4. HOST_CONFIG_DIR=$SERVICE_CONFIGSTORE/$PEERTUBE_CONFIG_DIR
  5. domain=$(relation-get domain) || {
  6. err "Can't get domain value."
  7. exit 1
  8. }
  9. cat <<EOF >> "$HOST_CONFIG_DIR/local.yaml"
  10. webserver:
  11. https: true
  12. hostname: '$domain'
  13. port: 443
  14. EOF
  15. info "Configured $SERVICE_NAME code for $TARGET_SERVICE_NAME access."