blender-open-data/playbooks/vars_common.yaml

59 lines
1.7 KiB
YAML

---
domain: opendata.blender.org
port: 8120
launcher_port: 32881
host: web-1.internal
launcher_host: web-1.internal
project_name: Blender Open Data
project_slug: blender-open-data
service_name: "{{ project_slug }}-{{ env }}"
launcher_authenticator_service_name: launcher-authenticator-{{ env }}
django_settings_module: opendata.settings
uwsgi_module: opendata.wsgi:application
client_max_body_size: "10m"
python_version: "3.10"
poetry_version: "1.4.2"
delete_venv: false # set to true if venv has to be re-created from scratch
# Set to true if ingress == application:
# meaning that SSL is terminated by and Django app is run on the same host.
single_host: false
dir:
source: /opt/{{ service_name }}
static: /opt/{{ service_name }}/website/public/static
media: /var/www/{{ service_name }}/media
errors: /var/www/{{ service_name }}/html/errors
assets: /var/www/{{ service_name }}/assets
snapshots: /var/www/{{ service_name }}/snapshots
libmaxminddb: /var/lib/libmaxminddb
env_file: "{{ dir.source }}/.env"
django_settings_module_path: "{{ dir.source }}/website/opendata/settings.py"
uwsgi_pid: "{{ dir.source }}/{{ service_name }}.pid"
uwsgi_socket: "{{ dir.source }}/website/uwsgi.sock"
uwsgi_processes: 4
nginx:
user: www-data
group: www-data
nginx_conf_dir: /etc/nginx
user: opendata-{{ env }}
group: "{{ nginx.group }}"
mailto: cron@blender.org
certbot:
email: root@blender.org
source_url: https://projects.blender.org/infrastructure/{{ project_slug }}.git
branch: production
backup_dir: /mnt/backup
ssl_only: false
ca_certificate: /usr/local/share/ca-certificates/cloud-init-ca-cert-1.crt
maxminddb_edition: GeoLite2-Country
maxminddb_url: https://download.maxmind.com/app/geoip_download