Implemented role to recieve certs & do modification routines. Also optimized nextcloud

This commit is contained in:
2025-02-21 09:28:01 +01:00
parent 0805929d41
commit 8c951f6a19
15 changed files with 40 additions and 49 deletions

View File

@@ -3,7 +3,7 @@
This role streamlines your Nginx configuration by performing several essential tasks:
- **Modify Nginx configuration** with the `nginx-modifier-all` role.
- **Request and receive HTTPS certificates** using the `nginx-https-recieve-certificate` role.
- **Request and receive HTTPS certificates** using the `nginx-https-get-cert` role.
- **Deploy a domain configuration file** from a Jinja2 template.
- **Optionally secure your domain** with OAuth2 via the `docker-oauth2-proxy` role if enabled.

View File

@@ -1,19 +1,7 @@
- name: "include role nginx-modifier-all for {{domain}}"
include_role:
name: nginx-modifier-all
- name: "Relevant variables for role: {{ role_path | basename }}"
debug:
msg:
domain: "{{domain}}"
domains: "{{domains}}"
applications: "{{applications}}"
when: enable_debug | bool
- name: "include role nginx-https-recieve-certificate for {{domain}}"
include_role:
name: nginx-https-recieve-certificate
- name: "include role for {{domain}} to recieve certificates and do the modification routines"
include_role:
name: nginx-https-get-cert-modify-all
- name: "copy nginx domain configuration to {{configuration_destination}}"
template:
src: "roles/nginx-docker-reverse-proxy/templates/domain.conf.j2"