changed certificate path variable handling

This commit is contained in:
muppeth 2024-05-08 01:34:54 +02:00
parent 10ae1db100
commit 8cdb244d88
Signed by: muppeth
GPG key ID: 0EBC7B9848D04031
5 changed files with 9 additions and 9 deletions

View file

@ -29,7 +29,7 @@ firewall_users_blocked:
#PROSODY CONFIG
prosody_allow_registration: 'false'
prosody_certificates: 'certs'
prosody_certificate_path: '/etc/letsencrypt/live'
server_name: 'example.org'
prosody_c2s_encryption: 'true'
prosody_s2s_auth: 'false'

View file

@ -11,7 +11,7 @@ Component "{{ item.name }}"
{% if item.ssl %}
-- SSL Settings
ssl = {
key = "/etc/prosody/{{ prosody_certificates }}/{{ item.name }}/privkey.pem";
certificate = "/etc/prosody/{{ prosody_certificates }}/{{ item.name }}/fullchain.pem";
key = "{{ prosody_certificate_path }}/{{ item.name }}/privkey.pem";
certificate = "{{ prosody_certificate_path }}/{{ item.name }}/fullchain.pem";
}
{% endif %}

View file

@ -29,8 +29,8 @@ modules_enabled = {
-- SSL Settings
ssl = {
key = "/etc/prosody/{{ prosody_certificates }}/{{ item.url }}/privkey.pem";
certificate = "/etc/prosody/{{ prosody_certificates }}/{{ item.url }}/fullchain.pem";
key = "{{ prosody_certificate_path }}/{{ item.url }}/privkey.pem";
certificate = "{{ prosody_certificate_path }}/{{ item.url }}/fullchain.pem";
}
{% endfor %}
{% endif %}

View file

@ -7,6 +7,6 @@ Component "{{ prosody_proxy65_url }}" "proxy65"
-- SSL Settings
ssl = {
key = "/etc/prosody/{{ prosody_certificates }}/{{ prosody_proxy65_url }}/privkey.pem";
certificate = "/etc/prosody/{{ prosody_certificates }}/{{ prosody_proxy65_url }}/fullchain.pem";
key = "{{ prosody_certificate_path }}/{{ prosody_proxy65_url }}/privkey.pem";
certificate = "{{ prosody_certificate_path }}/{{ prosody_proxy65_url }}/fullchain.pem";
}

View file

@ -33,6 +33,6 @@ feed = {
-- SSL Settings
ssl = {
key = "/etc/prosody/{{ prosody_certificates }}/{{ prosody_pubsub_url }}/privkey.pem";
certificate = "/etc/prosody/{{ prosody_certificates }}/{{ prosody_pubsub_url }}/fullchain.pem";
key = "{{ prosody_certificate_path }}/{{ prosody_pubsub_url }}/privkey.pem";
certificate = "{{ prosody_certificate_path }}/{{ prosody_pubsub_url }}/fullchain.pem";
}