added ldap and smtp config (#2)
Co-authored-by: muppeth <muppeth@disroot.org> Reviewed-on: #2 Reviewed-by: antilopa <antilopa@no-reply@disroot.org> Reviewed-by: meaz <meaz@no-reply@disroot.org> Co-authored-by: muppeth <muppeth@no-reply@disroot.org> Co-committed-by: muppeth <muppeth@no-reply@disroot.org>
This commit is contained in:
parent
bb71afccaa
commit
73cd9fcc56
|
@ -21,13 +21,13 @@ pleroma_apt_list:
|
|||
|
||||
|
||||
|
||||
pleroma_host: "192.168.33.2"
|
||||
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.2"
|
||||
pleroma_link_host: "192.168.33.15"
|
||||
pleroma_link_port: "80"
|
||||
pleroma_link_scheme: "http"
|
||||
pleroma_https: 'false'
|
||||
|
@ -36,18 +36,19 @@ 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_allow_relay: 'true'
|
||||
pleroma_remote_post_retention: '90'
|
||||
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_smtp: 'false'
|
||||
pleroma_ldap: 'false'
|
||||
pleroma_admin: 'true'
|
||||
pleroma_admin_user: 'admin'
|
||||
pleroma_admin_email: 'admin@example.lan'
|
||||
|
@ -81,6 +82,11 @@ pleroma_soapbox_footer:
|
|||
- 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: 12
|
||||
postgresql_listen_addresses:
|
||||
|
|
|
@ -31,3 +31,18 @@
|
|||
group: '{{ pleroma_group }}'
|
||||
mode: "0755"
|
||||
changed_when: false
|
||||
|
||||
- name: '[Soapbox] - Create about dir'
|
||||
file:
|
||||
path: '{{ pleroma_data_dir }}/static/instance/about'
|
||||
state: directory
|
||||
|
||||
- name: '[ Soapbox] - Deploy about redirects'
|
||||
template:
|
||||
src: 'about/soapbox.{{ item }}.html.j2'
|
||||
dest: '{{ pleroma_data_dir }}/static/instance/about/{{ item }}.html'
|
||||
with_items:
|
||||
- index
|
||||
- privacy
|
||||
- tos
|
||||
when: pleroma_soapbox_redirects is defined and pleroma_soapbox_redirects == 'true'
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<meta http-equiv="refresh" content="time; URL={{ pleroma_soap_about }}" />
|
|
@ -0,0 +1 @@
|
|||
<meta http-equiv="refresh" content="time; URL={{ pleroma_soap_pp }}" />
|
|
@ -0,0 +1 @@
|
|||
<meta http-equiv="refresh" content="time; URL={{ pleroma_soap_tos }}" />
|
|
@ -18,7 +18,10 @@ config :pleroma, :instance,
|
|||
limit: {{ pleroma_char_limit }},
|
||||
registrations_open: {{ pleroma_signup_open }},
|
||||
invites_enabled: {{ pleroma_invites_enabled }},
|
||||
static_dir: "{{ pleroma_data_dir }}/static/"
|
||||
static_dir: "{{ pleroma_data_dir }}/static/",
|
||||
allow_relay: {{ pleroma_allow_relay }},
|
||||
remote_post_retention_days: "{{ pleroma_remote_post_retention }}"
|
||||
|
||||
|
||||
config :pleroma, Pleroma.Upload,
|
||||
uploader: Pleroma.Uploaders.Local,
|
||||
|
@ -40,14 +43,48 @@ config :pleroma, Pleroma.Repo,
|
|||
pool_size: 10,
|
||||
timeout: 60000
|
||||
|
||||
config :prometheus, Pleroma.Web.Endpoint.MetricsExporter,
|
||||
enabled: true
|
||||
# ip_whitelist: ["127.0.0.1"],
|
||||
# path: "/api/pleroma/app_metrics",
|
||||
# format: :text
|
||||
|
||||
config :logger,
|
||||
backends: [{ExSyslogger, :ex_syslogger}]
|
||||
|
||||
config :logger, :ex_syslogger,
|
||||
level: {{ pleroma_loglevel }}
|
||||
|
||||
config :pleroma, configurable_from_database: false
|
||||
|
||||
config :pleroma, Pleroma.Upload, filters: [Pleroma.Upload.Filter.Exiftool, Pleroma.Upload.Filter.AnonymizeFilename, Pleroma.Upload.Filter.Dedupe]
|
||||
|
||||
{% if pleroma_smtp == 'true' %}
|
||||
config :pleroma, Pleroma.Emails.Mailer,
|
||||
enabled: true,
|
||||
adapter: Swoosh.Adapters.SMTP,
|
||||
relay: "{{ pleroma_smtp_host }}",
|
||||
username: "{{ pleroma_smtp_username }}",
|
||||
password: "{{ pleroma_smtp_password }}",
|
||||
port: {{ pleroma_smtp_port }},
|
||||
ssl: true,
|
||||
auth: :always
|
||||
{% endif %}
|
||||
|
||||
config :pleroma, Pleroma.Web.Plugs.RemoteIp,
|
||||
enabled: true
|
||||
|
||||
config :pleroma, :rate_limit,
|
||||
authentication: {60_000, 15},
|
||||
search: [{1000, 10}, {1000, 30}]
|
||||
|
||||
{% if pleroma_ldap == 'true' %}
|
||||
config :pleroma, Pleroma.Web.Auth.LDAPAuthenticator,
|
||||
enabled: true,
|
||||
host: "{{ pleroma_ldap_host }}",
|
||||
port: "{{ pleroma_ldap_port }}",
|
||||
ssl: "{{ pleroma_ldap_ssl }}",
|
||||
{% if pleroma_ldap_sslotps is defined %}
|
||||
sslopts: "{{ pleroma_ldap_sslopts }}",
|
||||
{% endif %}
|
||||
tls: "{{ pleroma_ldap_tls }}",
|
||||
{% if pleroma_ldap_tlsotps is defined %}
|
||||
sslopts: "{{ pleroma_ldap_tlsopts }}",
|
||||
{% endif %}
|
||||
base: "{{ pleroma_ldap_base }}",
|
||||
uid: "{{ pleroma_ldap_uid }}"
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue