fixes for initial commit

This commit is contained in:
muppeth 2022-12-01 00:33:32 +01:00
parent 493efdce09
commit 32e0643dda
Signed by: muppeth
GPG key ID: 0EBC7B9848D04031
4 changed files with 13 additions and 8 deletions

View file

@ -8,3 +8,7 @@
vars_files:
- ../defaults/main.yml
vars:
ansible_python_interpreter: /usr/bin/python3

View file

@ -5,7 +5,7 @@ lemmy_apt:
- pkg-config
- libssl-dev
- libpq-dev
#- cargo # version to old
- build-essential
lemmy_username: 'lemmy'
lemmy_group: 'lemmy'
@ -17,7 +17,6 @@ lemmy_app_dir: '/usr/local'
# Server config: lemmy.hson
# see https://raw.githubusercontent.com/LemmyNet/lemmy/main/config/defaults.hjson
lemmy_hostname: 'example.lan'
lemmy_host: 'postgres'
lemmy_db_host: '127.0.0.1'
lemmy_db_user: 'lemmy'
lemmy_db_passwd: 'changeme'
@ -35,7 +34,7 @@ lemmy_smtp_server: 'localhost:25'
lemmy_smtp_login: 'username'
lemmy_smtp_password: 'changeme'
lemmy_smtp_from_address: 'noreply@example.com'
lemmy_tls_type: 'none'
lemmy_smtp_tls_type: 'none'
lemmy_activitypub_enabled: 'false'
lemmy_worker_count: '64'
lemmy_captcha_enabled: 'false'
@ -117,11 +116,12 @@ nginx_vhosts:
template: 'lemmy'
proto: 'http'
listen: '80'
upstream_proto: 'http'
upstream_name: '127.0.0.1'
use_error_log: 'true'
nginx_error_log_level: 'warn'
redirect_https: 'true'
max_upload: '56M'
letsencrypt: 'false'
secure_site: 'false'
nginx_HSTS_policy: 'false'
headers: 'none'
state: 'enable'

View file

@ -49,6 +49,7 @@
src: '{{ lemmy_pictrs_source_dir }}/target/release/pict-rs'
dest: /usr/bin/
remote_src: yes
mode: 0754
- name: '[PICT-RS] - Create {{ lemmy_pictrs_dir }}'
file:
@ -73,4 +74,4 @@
state: started
daemon_reload: yes
notify:
restart pictrs
restart pictrs

View file

@ -84,7 +84,7 @@
# Address to send emails from, eg "noreply@your-instance.com"
smtp_from_address: "{{ lemmy_smtp_from_address }}"
# Whether or not smtp connections should use tls. Can be none, tls, or starttls
tls_type: "{{ lemmy_tls_type }}"
tls_type: "{{ lemmy_smtp_tls_type }}"
}
# Parameters for automatic configuration of new instance (only used at first start)
setup: {