mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	Added get_domain function
This commit is contained in:
		| @@ -26,7 +26,7 @@ | ||||
| - name: create nextcloud nginx proxy configuration file | ||||
|   template:  | ||||
|     src:  "nginx/host.conf.j2"  | ||||
|     dest: "{{nginx.directories.http.servers}}{{domains[application_id]}}.conf" | ||||
|     dest: "{{nginx.directories.http.servers}}{{domains | get_domain(application_id)}}.conf" | ||||
|   notify: restart nginx | ||||
|  | ||||
| - name: create internal nextcloud nginx configuration | ||||
|   | ||||
| @@ -21,7 +21,7 @@ return array ( | ||||
|     'oidc_login_auto_redirect' => true, | ||||
|  | ||||
|     // Redirect to this page after logging out the user | ||||
|     'oidc_login_logout_url' => 'https://{{domains[application_id]}}', | ||||
|     'oidc_login_logout_url' => 'https://{{domains | get_domain(application_id)}}', | ||||
|  | ||||
|     // If set to true the user will be redirected to the | ||||
|     // logout endpoint of the OIDC provider after logout | ||||
|   | ||||
| @@ -29,10 +29,10 @@ NEXTCLOUD_ADMIN_PASSWORD=       "{{applications[application_id].credentials.admi | ||||
|  | ||||
| # Security | ||||
|  | ||||
| NEXTCLOUD_TRUSTED_DOMAINS=      "{{domains[application_id]}}" | ||||
| NEXTCLOUD_TRUSTED_DOMAINS=      "{{domains | get_domain(application_id)}}" | ||||
| # Whitelist local docker gateway in Nextcloud to prevent brute-force throtteling | ||||
| TRUSTED_PROXIES=                "192.168.102.65" | ||||
| OVERWRITECLIURL=                "{{ web_protocol }}://{{domains[application_id]}}" | ||||
| OVERWRITECLIURL=                "{{ web_protocol }}://{{domains | get_domain(application_id)}}" | ||||
| OVERWRITEPROTOCOL=              "https" | ||||
|  | ||||
| # Redis Configuration | ||||
|   | ||||
| @@ -7,7 +7,7 @@ database_password:                                  "{{applications.nextcloud.cr | ||||
| database_type:                                      "mariadb"                                                     # Database flavor | ||||
|  | ||||
| # Networking | ||||
| domain:                                             "{{ domains[application_id] }}"                                 # Public domain at which Nextcloud will be accessable | ||||
| domain:                                             "{{ domains | get_domain(application_id) }}"                                 # Public domain at which Nextcloud will be accessable | ||||
| http_port:                                          "{{ ports.localhost.http[application_id] }}"                  # Port at which nextcloud is reachable in the local network | ||||
|  | ||||
| # Control Node | ||||
|   | ||||
| @@ -25,7 +25,7 @@ plugin_configuration: | ||||
|     configkey: "custom_providers" | ||||
|     configvalue:  | ||||
|       custom_oidc: | ||||
|         - name: "{{ domains.keycloak }}" | ||||
|         - name: "{{ domains | get_domain('keycloak') }}" | ||||
|           title: "keycloak" | ||||
|           style: "keycloak" | ||||
|           authorizeUrl: "{{ oidc.client.authorize_url }}" | ||||
|   | ||||
| @@ -15,7 +15,7 @@ nextcloud_system_config: | ||||
|     value: "{{ HOST_LL | upper }}" | ||||
|  | ||||
|   - parameter: "trusted_domains 0" | ||||
|     value: "{{domains[application_id]}}" | ||||
|     value: "{{domains | get_domain(application_id)}}" | ||||
|  | ||||
|   - parameter: "overwrite.cli.url" | ||||
|     value: "{{ web_protocol }}://{{domains[application_id]}}" | ||||
|     value: "{{ web_protocol }}://{{domains | get_domain(application_id)}}" | ||||
		Reference in New Issue
	
	Block a user