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.

35 lines
1.1 KiB

  1. description: "Element Web"
  2. maintainer: "Stéphan Sainléger <stephan.sainleger@elabore.coop>"
  3. subordinate: true
  4. default-options:
  5. version: 1.11.91
  6. enforce-version: true
  7. enforce-config: true
  8. uses:
  9. publish-dir:
  10. #constraint: required | recommended | optional
  11. #auto: pair | summon | none ## default: pair
  12. scope: container
  13. constraint: required
  14. auto: summon
  15. solves:
  16. container: "main running server"
  17. default-options:
  18. location: !var-expand "$CONFIGSTORE/$BASE_SERVICE_NAME/opt/apps/element"
  19. # data-dirs: ## write permission for web-app
  20. # - .
  21. apache-custom-rules:
  22. - !bash-stdout |
  23. DOMAIN=$(relation:get "$BASE_SERVICE_NAME":publish-dir domain)
  24. ## Current apache default config defines an alias icons/ that
  25. ## hides the real one provided by element
  26. cat <<EOF
  27. Alias /icons/ /var/www/$DOMAIN/icons/
  28. <Directory "/var/www/$DOMAIN/icons">
  29. Options Indexes FollowSymLinks
  30. AllowOverride None
  31. Require all granted
  32. </Directory>
  33. EOF