pleroma/defaults/main.yml

143 lines
4.5 KiB
YAML

---
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.2"
pleroma_port: 4000
pleroma_scheme: "http"
pleroma_proxy_pass: "{{pleroma_scheme}}://{{pleroma_host}}:{{pleroma_port}}"
pleroma_link_host: "192.168.33.2"
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_admin_email: "admin@{{pleroma_link_host}}"
pleroma_char_limit: 5000
pleroma_signup_open: "true"
pleroma_loglevel: ":debug"
pleroma_db_host: "localhost"
pleroma_db_superuser: "postgres"
pleroma_db_passwd: 'changeme'
pleroma_db_install: 'true'
pleroma_db: "pleroma"
pleroma_db_user: "admin"
pleroma_data_dir: "/srv/pleroma_data/"
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_soapbox: false
pleroma_soapbox_version: "v1.3.0"
pleroma_soapbox_download_url: "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/{{pleroma_soapbox_version}}/download?job=build-production"
#soapbox
pleroma_soapbox_logo: '/instance/images/soapbox-logo.svg'
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'
#Postgres
postgresql_version: 12
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: '80'
upstream_name: 'localhost'
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'