@ -0,0 +1,33 @@
# -*- ispell-local-dictionary: "english" -*-
* Info
From: https://github.com/lukevella/rallly
* Usage
Config info : https://support.rallly.co/self-hosting/configuration-options
Need a complete SMTP config to be functionnal
#+begin_src yaml
rallly:
charm: rallly
docker-compose:
options:
secret: <>
support_email: # email used for support
# OPTIONAL
allowed_emails: "*@example.coop, test@example2.com" # All by default if not set
smtp-extern:
charm: smtp-extern
host: <smtp.host>
port: <465>
secure: "true"
user: <smtp user>
password: <smtp password>
#+end_src
@ -0,0 +1,21 @@
#!/bin/bash
set -e
secret=$(options-get secret) || exit 1
support_email=$(options-get support_email) || exit 1
allowed_emails=$(options-get allowed_emails) || true
if [[ -z "$allowed_emails" ]]; then
allowed_emails=*
fi
init-config-add "\
$MASTER_BASE_SERVICE_NAME:
environment:
SECRET_PASSWORD: \"$secret\"
SUPPORT_EMAIL: \"$support_email\"
ALLOWED_EMAILS: \"$allowed_emails\"
NEXT_PUBLIC_BASE_URL: http://localhost:8082/
"
@ -0,0 +1,18 @@
PASSWORD="$(relation-get password)"
USER="$(relation-get user)"
DBNAME="$(relation-get dbname)"
config-add "\
services:
DATABASE_URL: \"postgres://$USER:$PASSWORD@$TARGET_SERVICE_NAME/$DBNAME\"
info "Configured $SERVICE_NAME code for $TARGET_SERVICE_NAME access."
@ -0,0 +1,20 @@
host=$(relation-get host) || exit 1
port=$(relation-get port) || exit 1
secure=$(relation-get secure) || exit 1
user=$(relation-get user) || exit 1
password=$(relation-get password) || exit 1
SMTP_HOST: \"$host\"
SMTP_PORT: \"$port\"
SMTP_SECURE: \"${secure,,}\"
SMTP_USER: \"${user//\$/\$\$}\"
SMTP_PWD: \"${password//\$/\$\$}\"
@ -0,0 +1,13 @@
DOMAIN=$(relation-get domain) || exit 1
NEXT_PUBLIC_BASE_URL: https://$DOMAIN
@ -0,0 +1,32 @@
docker-image: docker.0k.io/rallly:3.3.0
uses:
postgres-database:
#constraint: required | recommended | optional
#auto: pair | summon | none ## default: pair
constraint: required
auto: summon
solves:
database: "main storage"
default-options:
extensions:
- pgcrypto
- citext
web-proxy:
constraint: recommended
auto: pair
proxy: "Public access"
target: !var-expand ${MASTER_BASE_SERVICE_NAME}:3000
smtp-server:
backup:
backup: "Automatic regular backup"