devfund-website/playbooks/vars_common.yaml
Anna Sirota ce08b404dd Playbooks: switch to Python 3.10
Upgrading to Python 3.10 lead to the following changes:

    * Python's builtin `venv` is used instead of `virtualenv`:
        `python3-virtualenv` is packaged incorrectly making it impossible to
        use with Python binaries from ppa:deadsnakes,
        see https://github.com/pre-commit/pre-commit/issues/2211#issuecomment-1013954780

    * uWSGI is installed in the venv, the OS-wide uWSGI is no longer used
2024-01-09 10:26:29 +01:00

39 lines
1.0 KiB
YAML

domain: fund.blender.org
port: 8110
host: web-1.internal
project_name: Blender Development Fund
project_slug: blender-fund
service_name: "{{ project_slug }}-{{ env }}"
background_service_name: "{{ service_name }}-background"
django_settings_module: blender_fund.settings
uwsgi_module: blender_fund.wsgi:application
uwsgi_version: "2.0.23"
python_version: "3.10"
poetry_version: "1.4.2"
delete_venv: false # set to true if venv has to be re-created from scratch
dir:
source: "/opt/{{ service_name }}"
static: "/var/www/{{ service_name }}/static"
media: "/var/www/{{ service_name }}/media"
errors: "/var/www/{{ service_name }}/html/errors"
script_dir: /usr/local/bin
backup_dir: /mnt/backup
env_file: "{{ dir.source }}/.env"
uwsgi_pid: "{{ dir.source }}/{{ service_name }}.pid"
nginx:
user: www-data
group: www-data
nginx_conf_dir: /etc/nginx
user: "blender-fund-{{ env }}"
group: "{{ nginx.group }}"
mailto: cron@blender.org
certbot:
email: root@blender.org
source_url: https://projects.blender.org/infrastructure/devfund-website.git
branch: production