Compare commits
1 Commits
dfb9433a54
...
bbefcea786
Author | SHA1 | Date | |
---|---|---|---|
bbefcea786
|
@ -38,3 +38,106 @@ pixelfed_app_paths:
|
|||||||
mode: "0750"
|
mode: "0750"
|
||||||
- path: "{{ pixelfed_source_path }}"
|
- path: "{{ pixelfed_source_path }}"
|
||||||
mode: "0750"
|
mode: "0750"
|
||||||
|
|
||||||
|
pixelfed_config_app_key: ~
|
||||||
|
pixelfed_config_app_name: "Pixelfed"
|
||||||
|
pixelfed_config_app_env: production
|
||||||
|
pixelfed_config_app_debug: false
|
||||||
|
pixelfed_config_app_url: "https://{{ pixelfed_config_app_url }}"
|
||||||
|
pixelfed_config_app_domain: ~ # my.pixelfed.domain
|
||||||
|
pixelfed_config_admin_domain: "{{ pixelfed_config_app_domain }}"
|
||||||
|
pixelfed_config_session_domain: "{{ pixelfed_config_app_domain }}"
|
||||||
|
|
||||||
|
pixelfed_config_open_registration: true
|
||||||
|
pixelfed_config_enforce_email_verification: false
|
||||||
|
pixelfed_config_pf_max_users: 1000
|
||||||
|
pixelfed_config_oauth_enabled: true
|
||||||
|
|
||||||
|
pixelfed_config_app_timezone: UTC
|
||||||
|
pixelfed_config_app_locale: en
|
||||||
|
|
||||||
|
pixelfed_config_limit_account_size: true
|
||||||
|
pixelfed_config_max_account_size: 1000000
|
||||||
|
pixelfed_config_max_photo_size: 15000
|
||||||
|
pixelfed_config_max_avatar_size: 2000
|
||||||
|
pixelfed_config_max_caption_length: 500
|
||||||
|
pixelfed_config_max_bio_length: 125
|
||||||
|
pixelfed_config_max_name_length: 30
|
||||||
|
pixelfed_config_max_album_length: 4
|
||||||
|
pixelfed_config_image_quality: 80
|
||||||
|
pixelfed_config_pf_optimize_images: true
|
||||||
|
pixelfed_config_pf_optimize_videos: true
|
||||||
|
pixelfed_config_admin_env_editor: false
|
||||||
|
pixelfed_config_account_deletion: true
|
||||||
|
pixelfed_config_account_delete_after: false
|
||||||
|
pixelfed_config_max_links_per_post: 0
|
||||||
|
|
||||||
|
pixelfed_config_instance_description: ~
|
||||||
|
pixelfed_config_instance_public_hashtags: false
|
||||||
|
pixelfed_config_instance_contact_email: ~
|
||||||
|
pixelfed_config_instance_public_local_timetime: false
|
||||||
|
pixelfed_config_banned_usernames: ~
|
||||||
|
pixelfed_config_stories_enabled: false
|
||||||
|
pixelfed_config_restricted_instance: false
|
||||||
|
|
||||||
|
pixelfed_config_mail_driver: log
|
||||||
|
pixelfed_config_mail_host: ~
|
||||||
|
pixelfed_config_mail_port: 25
|
||||||
|
pixelfed_config_mail_from_address: "pixelfed@{{ pixelfed_config_app_domain }}"
|
||||||
|
pixelfed_config_mail_from_name: "{{ pixelfed_config_app_name }}"
|
||||||
|
pixelfed_config_mail_username: null
|
||||||
|
pixelfed_config_mail_password: null
|
||||||
|
pixelfed_config_mail_encryption: null
|
||||||
|
|
||||||
|
pixelfed_config_db_connection: pgsql
|
||||||
|
pixelfed_config_db_host: postgres
|
||||||
|
pixelfed_config_db_port: 5432
|
||||||
|
pixelfed_config_db_username: pixelfed
|
||||||
|
pixelfed_config_db_password: ~
|
||||||
|
pixelfed_config_db_database: pixelfed
|
||||||
|
|
||||||
|
pixelfed_config_redis_client: phpredis
|
||||||
|
pixelfed_config_redis_scheme: tcp
|
||||||
|
pixelfed_config_redis_host: redis
|
||||||
|
pixelfed_config_redis_password: ~
|
||||||
|
pixelfed_config_redis_port: 6379
|
||||||
|
pixelfed_config_redis_database: 0
|
||||||
|
|
||||||
|
pixelfed_config_exp_lc: false
|
||||||
|
pixelfed_config_exp_rec: false
|
||||||
|
pixelfed_config_exp_loops: false
|
||||||
|
|
||||||
|
pixelfed_config_activity_pub: false
|
||||||
|
pixelfed_config_ap_remote_follow: false
|
||||||
|
pixelfed_config_ap_shared_inbox: false
|
||||||
|
pixelfed_config_ap_inbox: false
|
||||||
|
pixelfed_config_ap_outbox: false
|
||||||
|
pixelfed_config_atom_feeds: true
|
||||||
|
pixelfed_config_nodeinfo: true
|
||||||
|
pixelfed_config_webfinger: true
|
||||||
|
|
||||||
|
pixelfed_config_filesystem_driver: local
|
||||||
|
pixelfed_config_filesystem_cloud: s3
|
||||||
|
pixelfed_config_pf_enable_cloud: false
|
||||||
|
pixelfed_config_aws_access_key_id: ~
|
||||||
|
pixelfed_config_aws_secret_access_key: ~
|
||||||
|
pixelfed_config_aws_default_region: ~
|
||||||
|
pixelfed_config_aws_bucket: ~
|
||||||
|
pixelfed_config_aws_url: ~
|
||||||
|
pixelfed_config_aws_endpont: ~
|
||||||
|
pixelfed_config_aws_use_path_style_endpoint: false
|
||||||
|
|
||||||
|
pixelfed_config_horizon_darkmode: false
|
||||||
|
pixelfed_config_pf_costar_enabled: false
|
||||||
|
pixelfed_config_media_exif_database: false
|
||||||
|
pixelfed_config_log_channel: stderr
|
||||||
|
pixelfed_config_image_driver: imagick
|
||||||
|
|
||||||
|
pixelfed_config_broadcast_driver: log
|
||||||
|
pixelfed_config_cache_driver: redis
|
||||||
|
pixelfed_config_restrict_html_types: true
|
||||||
|
pixelfed_config_queue_driver: redis
|
||||||
|
pixelfed_config_session_driver: redis
|
||||||
|
pixelfed_config_trust_proxies: "*"
|
||||||
|
pixelfed_config_passport_private_key: ~
|
||||||
|
pixelfed_config_passport_public_key: ~
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Restart pixelfed (docker)
|
||||||
|
docker_container:
|
||||||
|
name: "{{ pixelfed_container_name }}"
|
||||||
|
state: started
|
||||||
|
restart: yes
|
||||||
|
when: 'docker' in pixelfed_deployment_method
|
||||||
|
listen: restart-pixelfed
|
||||||
|
|
||||||
|
- name: Restart pixelfed worker (docker)
|
||||||
|
docker_container:
|
||||||
|
name: "{{ pixelfed_worker_container_name }}"
|
||||||
|
state: started
|
||||||
|
restart: yes
|
||||||
|
when: 'docker' in pixelfed_deployment_method
|
||||||
|
listen: restart-pixelfed
|
||||||
|
@ -19,13 +19,19 @@
|
|||||||
loop_var: dir
|
loop_var: dir
|
||||||
label: "{{ dir.path }}"
|
label: "{{ dir.path }}"
|
||||||
|
|
||||||
- name: Ensure env file for pixelfed is templated
|
- name: Ensure pixelfed configuration is templated
|
||||||
template:
|
copy:
|
||||||
src: env.docker.j2
|
content: |+
|
||||||
|
{% for key in pixelfed_config | dict2items %}
|
||||||
|
{% if pixelfed_config[key] %}
|
||||||
|
{{ key }}={{ pixelfed_config[key] }}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
dest: "{{ pixelfed_config_path }}/env"
|
dest: "{{ pixelfed_config_path }}/env"
|
||||||
owner: "{{ pixelfed_run_user }}"
|
owner: "{{ pixelfed_run_user }}"
|
||||||
group: "{{ pixelfed_run_group }}"
|
group: "{{ pixelfed_run_group }}"
|
||||||
mode: "0640"
|
mode: "0640"
|
||||||
|
notify: restart-pixelfed
|
||||||
|
|
||||||
- name: Ensure docker container image is available
|
- name: Ensure docker container image is available
|
||||||
include_tasks:
|
include_tasks:
|
||||||
@ -37,3 +43,6 @@
|
|||||||
- name: Ensure pixelfed instance is started (docker)
|
- name: Ensure pixelfed instance is started (docker)
|
||||||
include_tasks:
|
include_tasks:
|
||||||
file: docker-deploy.yml
|
file: docker-deploy.yml
|
||||||
|
when: 'docker' in pixelfed_deployment_method
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,8 +4,7 @@ pixelfed_container_base_volumes:
|
|||||||
- "{{ pixelfed_storage_path }}:/var/www/storage:z"
|
- "{{ pixelfed_storage_path }}:/var/www/storage:z"
|
||||||
- "{{ pixelfed_config_path/env:/var/www/.env:ro"
|
- "{{ pixelfed_config_path/env:/var/www/.env:ro"
|
||||||
|
|
||||||
pixelfed_container_base_env:
|
pixelfed_container_base_env: {}
|
||||||
|
|
||||||
|
|
||||||
pixelfed_container_base_labels:
|
pixelfed_container_base_labels:
|
||||||
VERSION: "{{ pixelfed_version }}"
|
VERSION: "{{ pixelfed_version }}"
|
||||||
@ -19,3 +18,116 @@ pixelfed_source_upstream_git_repo: "https://github.com/pixelfed/pixelfed.git"
|
|||||||
pixelfed_supported_deployment_methods:
|
pixelfed_supported_deployment_methods:
|
||||||
- docker_selfbuilt
|
- docker_selfbuilt
|
||||||
- docker_pulled
|
- docker_pulled
|
||||||
|
|
||||||
|
|
||||||
|
# pixelfed app config
|
||||||
|
pixelfed_config:
|
||||||
|
APP_KEY: "{{ pixelfed_config_app_key }}"
|
||||||
|
APP_NAME: "{{ pixelfed_config_app_name }}"
|
||||||
|
APP_ENV: "{{ pixelfed_config_app_env }}"
|
||||||
|
APP_DEBUG: "{{ pixelfed_config_app_debug }}"
|
||||||
|
APP_URL: "{{ pixelfed_config_app_url }}"
|
||||||
|
APP_DOMAIN: "{{ pixelfed_config_app_domain }}"
|
||||||
|
ADMIN_DOMAIN: "{{ pixelfed_config_app_admin_domain }}"
|
||||||
|
SESSION_DOMAIN: "{{ pixelfed_config_session_domain }}"
|
||||||
|
|
||||||
|
OPEN_REGISTRATION: "{{ pixelfed_config_open_registration }}"
|
||||||
|
ENFORCE_EMAIL_VERIFICATION: "{{ pixelfed_config_enforce_email_verification }}"
|
||||||
|
PF_MAX_USERS: "{{ pixelfed_config_pf_max_users }}"
|
||||||
|
OAUTH_ENABLED: "{{ pixelfed_config_oauth_enabled }}"
|
||||||
|
|
||||||
|
APP_TIMEZONE: "{{ pixelfed_config_app_timezone }}"
|
||||||
|
APP_LOCALE: "{{ pixelfed_config_all_locale }}"
|
||||||
|
|
||||||
|
LIMIT_ACCOUNT_SIZE: "{{ pixelfed_config_limit_account_size }}"
|
||||||
|
MAX_ACCOUNT_SIZE: "{{ pixelfed_config_max_account_size }}"
|
||||||
|
MAX_PHOTO_SIZE: "{{ pixelfed_config_ }}"
|
||||||
|
MAX_AVATAR_SIZE: "{{ pixelfed_config_ }}"
|
||||||
|
MAX_CAPTION_LENGTH: "{{ pixelfed_config_ }}"
|
||||||
|
MAX_BIO_LENGTH: "{{ pixelfed_config_ }}"
|
||||||
|
MAX_NAME_LENGTH: "{{ pixelfed_config_ }}"
|
||||||
|
MAX_ALBUM_LENGTH: "{{ pixelfed_config_ }}"
|
||||||
|
IMAGE_QUALITY: "{{ pixelfed_config_ }}"
|
||||||
|
PF_OPTIMIZE_IMAGES: "{{ pixelfed_config_ }}"
|
||||||
|
PF_OPTIMIZE_VIDEOS: "{{ pixelfed_config_ }}"
|
||||||
|
ADMIN_ENV_EDITOR: "{{ pixelfed_config_ }}"
|
||||||
|
ACCOUNT_DELETION: "{{ pixelfed_config_ }}"
|
||||||
|
ACCOUNT_DELETE_AFTER: "{{ pixelfed_config_ }}"
|
||||||
|
MAX_LINKS_PER_POST: "{{ pixelfed_config_ }}"
|
||||||
|
|
||||||
|
INSTANCE_DESCRIPTION: "{{ pixelfed_config_instance_description }}"
|
||||||
|
INSTANCE_PUBLIC_HASHTAGS: "{{ pixelfed_config_instance_public_hashtags }}"
|
||||||
|
INSTANCE_CONTACT_EMAIL: "{{ pixelfed_config_instance_contact_email }}"
|
||||||
|
INSTANCE_PUBLIC_LOCAL_TIMELINE: "{{ pixelfed_config_instance_public_local_timeline }}"
|
||||||
|
BANNED_USERNAMES: "{{ pixelfed_config_banned_usernames }}"
|
||||||
|
STORIES_ENABLED: "{{ pixelfed_config_stories_enabled }}"
|
||||||
|
RESTRICTED_INSTANCE: "{{ pixelfed_config_restricted_instance }}"
|
||||||
|
|
||||||
|
## Mail
|
||||||
|
MAIL_DRIVER: "{{ pixelfed_config_mail_driver }}"
|
||||||
|
MAIL_HOST: "{{ pixelfed_config_mail_host }}"
|
||||||
|
MAIL_PORT: "{{ pixelfed_config_mail_port }}"
|
||||||
|
MAIL_FROM_ADDRESS: "{{ pixelfed_config_mail_from_address }}"
|
||||||
|
MAIL_FROM_NAME: "{{ pixelfed_config_mail_from_name }}"
|
||||||
|
MAIL_USERNAME: "{{ pixelfed_config_mail_username }}"
|
||||||
|
MAIL_PASSWORD: "{{ pixelfed_config_mail_password }}"
|
||||||
|
MAIL_ENCRYPTION: "{{ pixelfed_config_mail_encryption }}"
|
||||||
|
|
||||||
|
## Databases (MySQL)
|
||||||
|
DB_CONNECTION: "{{ pixelfed_config_db_connection }}"
|
||||||
|
DB_DATABASE: "{{ pixelfed_config_db_database }}"
|
||||||
|
DB_HOST: "{{ pixelfed_config_db_host }}"
|
||||||
|
DB_PASSWORD: "{{ pixelfed_config_db_password }}"
|
||||||
|
DB_PORT: "{{ pixelfed_config_db_port }}"
|
||||||
|
DB_USERNAME: "{{ pixelfed_config_db_username }}"
|
||||||
|
|
||||||
|
## Cache (Redis)
|
||||||
|
REDIS_CLIENT: "{{ pixelfed_config_redis_client }}"
|
||||||
|
REDIS_SCHEME: "{{ pixelfed_config_redis_scheme }}"
|
||||||
|
REDIS_HOST: "{{ pixelfed_config_redis_host }}"
|
||||||
|
REDIS_PASSWORD: "{{ pixelfed_config_redis_password }}"
|
||||||
|
REDIS_PORT: "{{ pixelfed_config_redis_port }}"
|
||||||
|
REDIS_DATABASE: "{{ pixelfed_config_redis_database }}"
|
||||||
|
|
||||||
|
## EXPERIMENTS
|
||||||
|
EXP_LC: "{{ pixelfed_config_exp_lc }}"
|
||||||
|
EXP_REC: "{{ pixelfed_config_exp_rec }}"
|
||||||
|
EXP_LOOPS: "{{ pixelfed_config_exp_loops }}"
|
||||||
|
|
||||||
|
## ActivityPub Federation
|
||||||
|
ACTIVITY_PUB: "{{ pixelfed_config_activity_pub }}"
|
||||||
|
AP_REMOTE_FOLLOW: "{{ pixelfed_config_ap_remote_follow }}"
|
||||||
|
AP_SHAREDINBOX: "{{ pixelfed_config_ap_sharedinbox }}"
|
||||||
|
AP_INBOX: "{{ pixelfed_config_ap_inbox }}"
|
||||||
|
AP_OUTBOX: "{{ pixelfed_config_ap_outbox }}"
|
||||||
|
ATOM_FEEDS: "{{ pixelfed_config_atom_feeds }}"
|
||||||
|
NODEINFO: "{{ pixelfed_config_nodeinfo }}"
|
||||||
|
WEBFINGER: "{{ pixelfed_config_webfinger }}"
|
||||||
|
|
||||||
|
## S3
|
||||||
|
FILESYSTEM_DRIVER: "{{ pixelfed_config_filesystem_driver }}"
|
||||||
|
FILESYSTEM_CLOUD: "{{ pixelfed_config_filesystem_cloud }}"
|
||||||
|
PF_ENABLE_CLOUD: "{{ pixelfed_config_pf_enable_cloud }}"
|
||||||
|
AWS_ACCESS_KEY_ID: "{{ pixelfed_config_aws_access_key_id }}"
|
||||||
|
AWS_SECRET_ACCESS_KEY: "{{ pixelfed_config_aws_secret_access_key }}"
|
||||||
|
AWS_DEFAULT_REGION: "{{ pixelfed_config_aws_default_region }}"
|
||||||
|
AWS_BUCKET: "{{ pixelfed_config_aws_bucket }}"
|
||||||
|
AWS_URL: "{{ pixelfed_config_aws_url }}"
|
||||||
|
AWS_ENDPOINT: "{{ pixelfed_config_aws_endpoint }}"
|
||||||
|
AWS_USE_PATH_STYLE_ENDPOINT: "{{ pixelfed_config_aws_use_path_style_endpoint }}"
|
||||||
|
|
||||||
|
HORIZON_DARKMODE: "{{ pixelfed_config_horizon_darkmode }}"
|
||||||
|
PF_COSTAR_ENABLED: "{{ pixelfed_config_pf_costar_enabled }}"
|
||||||
|
MEDIA_EXIF_DATABASE: "{{ pixelfed_config_media_exif_database }}"
|
||||||
|
LOG_CHANNEL: "{{ pixelfed_config_log_channel }}"
|
||||||
|
IMAGE_DRIVER: "{{ pixelfed_config_image_driver }}"
|
||||||
|
|
||||||
|
BROADCAST_DRIVER: "{{ pixelfed_config_ }}"
|
||||||
|
CACHE_DRIVER: "{{ pixelfed_config_cache_driver }}"
|
||||||
|
RESTRICT_HTML_TYPES: "{{ 'true' pixelfed_config_restrict_html_types else 'false' }}"
|
||||||
|
QUEUE_DRIVER: "{{ pixelfed_config_queue_driver }}"
|
||||||
|
SESSION_DRIVER: "{{ pixelfed_config_session_driver }}"
|
||||||
|
TRUST_PROXIES: "{{ pixelfed_config_trust_proxies }}"
|
||||||
|
PASSPORT_PRIVATE_KEY: "{{ pixelfed_config_passport_private_key }}"
|
||||||
|
PASSPORT_PUBLIC_KEY: "{{ pixelfed_config_passport_public_key }}"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user