pleroma/defaults/main.yml

167 lines
5.4 KiB
YAML

---
ansible_python_interpreter: 'python3'
pleroma_extra_files_path: '../files'
pleroma_user: 'pleroma'
pleroma_group: 'pleroma'
pleroma_tmp_dir: '/tmp/pleroma/'
pleroma_app_dir: '/opt/pleroma'
pleroma_apt_list:
- 'libmagic-dev'
- 'libtinfo5'
- 'git'
- 'build-essential'
- 'cmake'
- 'elixir'
- 'erlang-dev'
- 'erlang-nox'
- 'imagemagick'
- 'ffmpeg'
- 'libimage-exiftool-perl'
- 'unzip'
pleroma_host: "192.168.33.15"
pleroma_port: 4000
pleroma_scheme: "http"
pleroma_proxy_pass: "{{ pleroma_scheme }}://{{ pleroma_host }}:{{ pleroma_port }}"
pleroma_link_host: "192.168.33.15"
pleroma_link_port: "80"
pleroma_link_scheme: "http"
pleroma_https: 'false'
pleroma_config_dir: '/etc/pleroma'
pleroma_instance_name: "{{ pleroma_link_host }}"
pleroma_secret_key: 'CDPbJ/+rD8hd27Hcw8igvGwyIDoS/J1isK4noJOybqfCuNuW9GDm0QNiW7syrGsHQQkTTSkzSZkAlKTqdnUahQ==' #openssl rand -base64 64 | paste --delimiters '' --serial
pleroma_invites_enabled: 'false'
pleroma_desc: "A Pleroma fediverse instance."
pleroma_char_limit: 5000
pleroma_signup_open: "true"
pleroma_loglevel: ":debug"
pleroma_conf_from_db: 'true'
pleroma_allow_relay: 'true'
pleroma_remote_post_retention: '90'
pleroma_db_host: "localhost"
pleroma_db_superuser: "postgres"
pleroma_db_passwd: 'changeme'
pleroma_db: "pleroma"
pleroma_db_user: "admin"
pleroma_data_dir: "/srv/pleroma_data/"
pleroma_smtp: 'false'
pleroma_ldap: 'false'
pleroma_admin: 'true'
pleroma_admin_user: 'admin'
pleroma_admin_email: 'admin@example.lan'
pleroma_admin_password: 'changeme'
pleroma_download_url: "https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/download?job={{pleroma_arch}}"
pleroma_arch: 'amd64'
pleroma_nofile: '500000'
pleroma_instance_favicons: 'true'
pleroma_remoteip: 'true'
pleroma_proxies: '["192.168.33.15"]'
pleroma_soapbox: false
pleroma_soapbox_version: "develop"
pleroma_soapbox_download_url: "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/{{ pleroma_soapbox_version }}/download?job=build-production"
pleroma_custom_emoji: 'true'
pleroma_custom_emoji_list:
- name: 'blobbear'
url: 'https://labo.lacoloc.cafe/june/blobbears/raw/branch/master/manifest.json'
- name: 'blobcat'
url: 'https://fedi.absturztau.be/emoji-packs/manifest.json'
#soapbox
pleroma_soapbox_logo: '/images/logo.png'
pleroma_soapbox_brandcolor: '#0482d8'
pleroma_soapbox_promopanel:
- text: 'Our Site stats'
icon: 'area-chart'
url: 'https://fediverse.network/example.com'
- text: 'Our Site blog'
icon: 'comment-o'
url: 'https://blog.example.com'
pleroma_soapbox_gif: 'false'
pleroma_soapbox_thememode: 'light'
pleroma_soapbox_copyright: '♡2020. Copying is an act of love. Please copy and share.'
pleroma_soapbox_footer:
- name: 'About'
url: '/about'
- name: 'Terms of Service'
url: '/about/tos'
- name: 'Privacy Policy'
url: '/about/privacy'
- name: 'Source code'
url: '/about#opensource'
pleroma_soapbox_redirects: 'false' #set to true if you want to redirect footer page links to another site
#pleroma_soap_about: 'https://example.com/about'
#pleroma_soap_tos: 'https://example.com/tos'
#pleroma_soap_pp: 'https://example/pp'
#Postgres
postgresql_version: 13
postgresql_listen_addresses:
- "127.0.0.1"
postgresql_pg_hba_default:
- { type: local, database: all, user: '{{ postgresql_admin_user }}', address: '', method: '{{ postgresql_default_auth_method }}', comment: '' }
- { type: local, database: all, user: all, address: '', method: '{{ postgresql_default_auth_method }}', comment: '"local" is for Unix domain socket connections only' }
- { type: host, database: all, user: all, address: '127.0.0.1/32', method: '{{ postgresql_default_auth_method_hosts }}', comment: 'IPv4 local connections:' }
postgresql_databases:
- name: pleroma
owner: admin # optional; specify the owner of the database
uuid_ossp: yes
postgresql_database_extensions:
- db: pleroma
extensions:
- citext
- pg_trgm
# hstore: no # flag to install the hstore extension on this database (yes/no)
#uuid_ossp: yes # flag to install the uuid-ossp extension on this database (yes/no)
#citext: yes # flag to install the citext extension on this database (yes/no)
postgresql_users:
- name: admin
pass: changeme
encrypted: yes # denotes if the password is already encrypted.
postgresql_user_privileges:
- name: admin # user name
db: pleroma # database
priv: "ALL" # privilege string format: example: INSERT,UPDATE/table:SELECT/anothertable:ALL
role_attr_flags: "" # role attribute flags
#NGINX SETUP
nginx_default_vhost_ssl: 'pleroma.example.lan'
nginx_default_vhost: 'pleroma.example.lan'
nginx_HSTS_policy: 'true'
#NGINX VHOST
nginx_vhosts:
- name: 'pleroma.example.lan'
template: 'pleroma'
upstream_proto: 'http'
upstream_port: '4000'
upstream_name: 'localhost'
upstream_maxfail: '5'
upstream_failtimeout: '60s'
proxycache_path: '/tmp/pleroma-media-cache'
proxycache_level: '1:2'
proxycache_keyzone: 'pleroma_media_cache:10m'
proxycache_maxsize: '10g'
proto: 'http'
listen: '80'
use_error_log: 'true'
nginx_error_log_level: 'warn'
redirect_https: 'true'
letsencrypt: 'false'
secure_site: 'false'
#header_sameorigin: 'true'
nc_max_upload: '50M'
nginx_HSTS_policy: 'false'
state: 'enable'