mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 07:18:09 +02:00
Optimized attendize role. Role can be removed as soon as pretix as alternative tool is implemented
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
# Attendize
|
# Attendize (Deprecated)
|
||||||
|
|
||||||
## Warning
|
## Warning
|
||||||
|
|
||||||
> **Note:** This role is a work in progress. Use with caution and check for updates.
|
> **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
|
## Description
|
||||||
|
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
# Todo
|
# Todo
|
||||||
- Implement this role
|
- Remove as soon as pretix app is included
|
||||||
- refactore main.yml
|
|
@@ -1,6 +1,3 @@
|
|||||||
image:
|
|
||||||
web: "attendize_web:latest"
|
|
||||||
worker: "attendize_worker:latest"
|
|
||||||
features:
|
features:
|
||||||
matomo: true
|
matomo: true
|
||||||
css: true
|
css: true
|
||||||
@@ -13,6 +10,12 @@ docker:
|
|||||||
enabled: true
|
enabled: true
|
||||||
database:
|
database:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
web:
|
||||||
|
image: "attendize_web"
|
||||||
|
version: "latest"
|
||||||
|
worker:
|
||||||
|
image: "attendize_worker"
|
||||||
|
version: "latest"
|
||||||
server:
|
server:
|
||||||
domains:
|
domains:
|
||||||
canonical:
|
canonical:
|
||||||
|
@@ -20,9 +20,3 @@
|
|||||||
src: roles/srv-proxy-core/templates/vhost/basic.conf.j2
|
src: roles/srv-proxy-core/templates/vhost/basic.conf.j2
|
||||||
dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ domains | get_domain(application_id) }}.conf"
|
dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ domains | get_domain(application_id) }}.conf"
|
||||||
notify: restart openresty
|
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"
|
|
@@ -1,7 +1,7 @@
|
|||||||
{% include 'roles/docker-compose/templates/base.yml.j2' %}
|
{% include 'roles/docker-compose/templates/base.yml.j2' %}
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: "{{ applications | get_app_conf(application_id, 'images.web', True) }}"
|
image: "{{ ATTENDIZE_WEB_IMAGE }}:{{ ATTENDIZE_WEB_VERSION }}"
|
||||||
ports:
|
ports:
|
||||||
- "{{ ports.localhost.http[application_id] }}:80"
|
- "{{ ports.localhost.http[application_id] }}:80"
|
||||||
volumes:
|
volumes:
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
{% include 'roles/docker-container/templates/networks.yml.j2' %}
|
{% include 'roles/docker-container/templates/networks.yml.j2' %}
|
||||||
|
|
||||||
worker:
|
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' %}
|
{% include 'roles/docker-container/templates/depends_on/dmbs_incl.yml.j2' %}
|
||||||
maildev:
|
maildev:
|
||||||
{% include 'roles/docker-container/templates/networks.yml.j2' %}
|
{% include 'roles/docker-container/templates/networks.yml.j2' %}
|
||||||
|
76
roles/web-app-attendize/templates/env.j2
Normal file
76
roles/web-app-attendize/templates/env.j2
Normal 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
|
@@ -1,4 +1,14 @@
|
|||||||
---
|
# General
|
||||||
application_id: "web-app-attendize"
|
application_id: "web-app-attendize"
|
||||||
|
|
||||||
|
# Database
|
||||||
database_type: "mariadb"
|
database_type: "mariadb"
|
||||||
|
|
||||||
|
# Docker
|
||||||
docker_repository_address: "https://github.com/Attendize/Attendize.git"
|
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') }}"
|
Reference in New Issue
Block a user