Dan Anglin
317adf3931
When running the pleybook more than once the ssl_certificate_key line was being overwritten by the 'lineinfile' tasks because the regular expression was too greedy. This merge request uses a stricter regular expression to indentify and update the ssl_certificate line in the Nginx configuration.
15 lines
746 B
YAML
15 lines
746 B
YAML
---
|
|
pleroma_deps_nginx: nginx, py-cryptography
|
|
|
|
pleroma_nginx_conf_dir: /etc/nginx/conf.d
|
|
pleroma_nginx_conf_file: "{{ pleroma_nginx_conf_dir }}/pleroma.conf"
|
|
|
|
pleroma_ssl_folder: /etc/ssl/pleroma
|
|
pleroma_ssl_privateKeyPath: "{{ pleroma_ssl_folder }}/pleroma.key"
|
|
pleroma_ssl_privateAcmeAccountKeyPath: "{{ pleroma_ssl_folder}}/acme_account.key"
|
|
pleroma_ssl_csrPath: "{{ pleroma_ssl_folder }}/pleroma.csr"
|
|
pleroma_ssl_selfSignedCertPath: "{{ pleroma_ssl_folder }}/pleroma-self-signed.crt"
|
|
pleroma_ssl_fullChainCert: "{{ pleroma_ssl_folder }}/{{ pleroma.config.host }}-fullchain.pem"
|
|
pleroma_ssl_certificate_path_regexp: ^\s+ssl_certificate\s+\/([A-z0-9-+.]+\/)*([A-z0-9-_.]+\.(crt|pem);)(\s+)?$
|
|
|
|
pleroma_letsEncrypt_baseDir: /var/lib/letsencrypt
|