You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.0 KiB
Markdown

# Usage:
See defaults/main.yml for description of config parameters
```yaml
- name: "Install mastodon"
hosts: czynna1
vars:
mastodon_docker_web_port: 3008
mastodon_docker_streaming_port: 3009
mastodon_docker_main_storage: "/mnt/juice/mastodon-docker"
roles:
- role: mastodon-docker
tags:
- mastodon-toot
vars:
mastodon_docker_domain: "toot.eu"
mastodon_docker_user: "mastodon-toot"
mastodon_docker_max_post_length: 500
mastodon_docker_home: "/var/www/mastodon-toot"
mastodon_docker_postgres_storage: "{{ mastodon_docker_main_storage }}/postgres"
mastodon_docker_redis_storage: "{{ mastodon_docker_main_storage }}/redis"
mastodon_docker_elasticsearch_storage: "{{ mastodon_docker_main_storage }}/elasticsearch"
mastodon_docker_system_storage: "{{ mastodon_docker_main_storage }}/system"
mastodon_docker_backup_storage: "{{ mastodon_docker_main_storage }}/backups"
mastodon_docker_cache_storage: "{{ mastodon_docker_main_storage }}/cache"
mastodon_docker_enable_elasticsearch: false
mastodon_docker_elasticsearch_port: 9200
mastodon_docker_mastodon_secret: <secret>
mastodon_docker_vapid_public: <secret>
mastodon_docker_vapid_private: <secret>
mastodon_docker_ar_encryption_deterministic_key: <secret>
mastodon_docker_ar_encryption_derivation_salt: <secret>
mastodon_docker_ar_encryption_primary_key: <secret>
mastodon_docker_smtp:
server: example.com
port: 587
login: login
password: <secret>
from: mastodon@example.com
- role: sealcode.nginx.proxies
tags:
- mastodon-toot
vars:
- domain: "toot.eu"
site_name: "mastodon-toot"
upstream: "http://127.0.0.1:{{mastodon_docker_web_port}}"
websocket_endpoints:
- url: "/api/v1/streaming"
upstream: "http://127.0.0.1:{{ mastodon_docker_streaming_port }}"
```