Optimized attendize role. Role can be removed as soon as pretix as alternative tool is implemented

This commit is contained in:
2025-08-27 12:27:55 +02:00
parent 19889a8cfc
commit 5446a1497e
7 changed files with 99 additions and 16 deletions

View File

@@ -1,8 +1,9 @@
# Attendize
# Attendize (Deprecated)
## Warning
> **Note:** This role is a work in progress. Use with caution and check for updates.
> The role wasn't updated since over 3 years. propably it makes sense to focus on the **web-app-pretix** app instead
## Description

View File

@@ -1,3 +1,2 @@
# Todo
- Implement this role
- refactore main.yml
- Remove as soon as pretix app is included

View File

@@ -1,6 +1,3 @@
image:
web: "attendize_web:latest"
worker: "attendize_worker:latest"
features:
matomo: true
css: true
@@ -13,6 +10,12 @@ docker:
enabled: true
database:
enabled: true
web:
image: "attendize_web"
version: "latest"
worker:
image: "attendize_worker"
version: "latest"
server:
domains:
canonical:

View File

@@ -20,9 +20,3 @@
src: roles/srv-proxy-core/templates/vhost/basic.conf.j2
dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ domains | get_domain(application_id) }}.conf"
notify: restart openresty
- name: "For '{{ application_id }}': include tasks update-repository-with-files.yml"
include_tasks: utils/update-repository-with-files.yml
vars:
detached_files:
- "docker-compose.yml"

View File

@@ -1,7 +1,7 @@
{% include 'roles/docker-compose/templates/base.yml.j2' %}
web:
image: "{{ applications | get_app_conf(application_id, 'images.web', True) }}"
image: "{{ ATTENDIZE_WEB_IMAGE }}:{{ ATTENDIZE_WEB_VERSION }}"
ports:
- "{{ ports.localhost.http[application_id] }}:80"
volumes:
@@ -15,7 +15,7 @@
{% include 'roles/docker-container/templates/networks.yml.j2' %}
worker:
image: "{{ applications | get_app_conf(application_id, 'images.worker', True) }}"
image: "{{ ATTENDIZE_WORKER_IMAGE }}:{{ ATTENDIZE_WORKER_VERSION }}"
{% include 'roles/docker-container/templates/depends_on/dmbs_incl.yml.j2' %}
maildev:
{% include 'roles/docker-container/templates/networks.yml.j2' %}

View File

@@ -0,0 +1,76 @@
# https://github.com/Attendize/Attendize/blob/develop/.env.example
ATTENDIZE_DEV=true
ATTENDIZE_CLOUD=false
APP_NAME=Attendize
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=https://localhost:8081
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=db
DB_PORT=3306
DB_DATABASE=attendize
DB_USERNAME=attendize
DB_PASSWORD=attendize
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=maildev
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
# Attendize Variables
DEFAULT_DATEPICKER_SEPERATOR="-"
DEFAULT_DATEPICKER_FORMAT="yyyy-MM-dd HH:mm"
DEFAULT_DATETIME_FORMAT="Y-m-d H:i"
APP_TIMEZONE=
MAIL_FROM_ADDRESS=testing@attendize.com
MAIL_FROM_NAME=testing_service
# https://github.com/NitMedia/wkhtml2pdf#driver-types
WKHTML2PDF_BIN_FILE=wkhtmltopdf-amd64
# Google Analytics
GOOGLE_ANALYTICS_ID=
GOOGLE_MAPS_GEOCODING_KEY=
# Captcha Configuration
CAPTCHA_IS_ON=false
# can be recaptcha or hcaptcha
CAPTCHA_TYPE=
CAPTCHA_KEY=
CAPTCHA_SECRET=
TWITTER_WIDGET_ID=
LOG=errorlog

View File

@@ -1,4 +1,14 @@
---
# General
application_id: "web-app-attendize"
# Database
database_type: "mariadb"
docker_repository_address: "https://github.com/Attendize/Attendize.git"
# Docker
docker_repository_address: "https://github.com/Attendize/Attendize.git"
# Attendize
ATTENDIZE_WEB_IMAGE: "{{ applications | get_app_conf(application_id, 'docker.services.web.image') }}"
ATTENDIZE_WEB_VERSION: "{{ applications | get_app_conf(application_id, 'docker.services.web.version') }}"
ATTENDIZE_WORKER_IMAGE: "{{ applications | get_app_conf(application_id, 'docker.services.worker.image') }}"
ATTENDIZE_WORKER_VERSION: "{{ applications | get_app_conf(application_id, 'docker.services.worker.version') }}"