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
35 lines
1.1 KiB
description: "Element Web"
|
|
maintainer: "Stéphan Sainléger <stephan.sainleger@elabore.coop>"
|
|
subordinate: true
|
|
|
|
default-options:
|
|
version: 1.11.91
|
|
enforce-version: true
|
|
enforce-config: true
|
|
|
|
uses:
|
|
publish-dir:
|
|
#constraint: required | recommended | optional
|
|
#auto: pair | summon | none ## default: pair
|
|
scope: container
|
|
constraint: required
|
|
auto: summon
|
|
solves:
|
|
container: "main running server"
|
|
default-options:
|
|
location: !var-expand "$CONFIGSTORE/$BASE_SERVICE_NAME/opt/apps/element"
|
|
# data-dirs: ## write permission for web-app
|
|
# - .
|
|
apache-custom-rules:
|
|
- !bash-stdout |
|
|
DOMAIN=$(relation:get "$BASE_SERVICE_NAME":publish-dir domain)
|
|
## Current apache default config defines an alias icons/ that
|
|
## hides the real one provided by element
|
|
cat <<EOF
|
|
Alias /icons/ /var/www/$DOMAIN/icons/
|
|
<Directory "/var/www/$DOMAIN/icons">
|
|
Options Indexes FollowSymLinks
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
EOF
|