mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	Renamed cymais to infinito and did some other optimations and logout implementations
This commit is contained in:
		
							
								
								
									
										7
									
								
								roles/web-svc-cdn/config/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								roles/web-svc-cdn/config/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| features: | ||||
|   matomo:             true | ||||
|   css:                true | ||||
|   port-ui-desktop:   true | ||||
| domains: | ||||
|   canonical: | ||||
|     - "cdn.{{ primary_domain }}" | ||||
							
								
								
									
										30
									
								
								roles/web-svc-cdn/meta/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								roles/web-svc-cdn/meta/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| --- | ||||
| galaxy_info: | ||||
|   author: "Kevin Veen-Birkenbach" | ||||
|   description: | | ||||
|     Configures an Nginx-based Content Delivery Network Server. | ||||
|   license: "Infinito.Nexus NonCommercial License (CNCL)" | ||||
|   license_url: "https://s.veen.world/cncl" | ||||
|   company: | | ||||
|     Kevin Veen-Birkenbach | ||||
|     Consulting & Coaching Solutions | ||||
|     https://www.veen.world | ||||
|   min_ansible_version: "2.9" | ||||
|   platforms: | ||||
|     - name: Archlinux | ||||
|       versions: | ||||
|         - rolling | ||||
|   galaxy_tags: | ||||
|     - nginx | ||||
|     - https | ||||
|     - file | ||||
|     - static-files | ||||
|     - ssl | ||||
|     - letsencrypt | ||||
|     - automation | ||||
|   repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" | ||||
|   issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" | ||||
|   documentation: "https://docs.infinito.nexus" | ||||
| dependencies: | ||||
|   - srv-web-7-6-https | ||||
|   - dev-git | ||||
							
								
								
									
										20
									
								
								roles/web-svc-cdn/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								roles/web-svc-cdn/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| --- | ||||
| - name: "include role for {{application_id}} to receive certs & do modification routines" | ||||
|   include_role: | ||||
|     name: srv-web-7-6-composer | ||||
|   vars: | ||||
|     domain:     "{{ domains | get_domain(application_id) }}" | ||||
|     http_port:  "{{ ports.localhost.http[application_id] }}" | ||||
|   when: run_once_web_svc_cdn is not defined | ||||
|  | ||||
| - name: "generate {{domains | get_domain(application_id)}}.conf" | ||||
|   template:  | ||||
|     src:  "nginx.conf.j2"  | ||||
|     dest: "{{ nginx.directories.http.servers }}{{ domains | get_domain(application_id) }}.conf" | ||||
|   notify: restart openresty | ||||
|   when: run_once_web_svc_cdn is not defined | ||||
|  | ||||
| - name: run the web svc cdn tasks once | ||||
|   set_fact: | ||||
|     run_once_web_svc_cdn: true | ||||
|   when: run_once_web_svc_cdn is not defined | ||||
							
								
								
									
										27
									
								
								roles/web-svc-cdn/templates/nginx.conf.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								roles/web-svc-cdn/templates/nginx.conf.j2
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| server | ||||
| { | ||||
|   server_name {{domains | get_domain(application_id)}}; | ||||
|    | ||||
|   {% include 'roles/srv-web-7-7-letsencrypt/templates/ssl_header.j2' %} | ||||
|  | ||||
|   {% include 'roles/srv-web-7-7-inj-compose/templates/server.conf.j2'%} | ||||
|  | ||||
|   {% include 'roles/srv-proxy-7-4-core/templates/headers/content_security_policy.conf.j2' %} | ||||
|   charset utf-8; | ||||
|    | ||||
|   location / | ||||
|   { | ||||
|     alias {{ nginx.directories.data.cdn }};  {# Path to your file directory #} | ||||
|     autoindex on;                            {# Enable directory listing #} | ||||
|     autoindex_exact_size off;                {# Display sizes in a human-readable format #} | ||||
|     autoindex_localtime on;                  {# Show local time #} | ||||
|     {% include 'roles/srv-web-7-7-inj-compose/templates/location.lua.j2' %} | ||||
|   } | ||||
|  | ||||
|   location /.well-known/ { | ||||
|     alias {{nginx.directories.data.well_known}}; | ||||
|     allow all; | ||||
|     default_type "text/plain"; | ||||
|     autoindex on; | ||||
|   } | ||||
| } | ||||
							
								
								
									
										2
									
								
								roles/web-svc-cdn/vars/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								roles/web-svc-cdn/vars/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| application_id: "web-svc-cdn" | ||||
| domain:         "{{ domains | get_domain(application_id) }}" | ||||
		Reference in New Issue
	
	Block a user