Migrate services part
This commit is contained in:
		
							parent
							
								
									7c59e4ae57
								
							
						
					
					
						commit
						73bce8f6e5
					
				
					 157 changed files with 3883 additions and 9 deletions
				
			
		
							
								
								
									
										10
									
								
								roles/faas/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								roles/faas/tasks/main.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,10 @@ | |||
| --- | ||||
| - name: Set common facts | ||||
|   ansible.builtin.import_tasks: tasks/set-default-facts.yml | ||||
| 
 | ||||
| - name: Deploy {{ svc.name }} | ||||
|   vars: | ||||
|     svc: "{{ faas_svc }}" | ||||
|   block: | ||||
|     - name: Import tasks to template the site and functions for the reverse proxy | ||||
|       ansible.builtin.import_tasks: tasks/steps/template-site-config.yml | ||||
							
								
								
									
										24
									
								
								roles/faas/vars/main.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								roles/faas/vars/main.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,24 @@ | |||
| --- | ||||
| faas_svc: | ||||
|   name: faas | ||||
|   domain: faas.serguzim.me | ||||
|   docker_host: host.docker.internal | ||||
|   port: 8080 | ||||
|   extra_svcs: | ||||
|     - domain: serguzim.me | ||||
|       faas_function: webpage-serguzim-me | ||||
|       www_domain: true | ||||
|       hsts: true | ||||
|       caddy_extra: | | ||||
|         header /.well-known/* Access-Control-Allow-Origin * | ||||
| 
 | ||||
|         handle /.well-known/webfinger { | ||||
|             map {query.resource} {user} { | ||||
|                 acct:tobias@msrg.cc serguzim | ||||
|                 acct:serguzim@msrg.cc serguzim | ||||
|             } | ||||
|             rewrite * /.well-known/webfinger/{user}.json | ||||
|             import faas webpage-msrg-cc | ||||
|         } | ||||
|     - domain: xn--sder-5qa.stream | ||||
|       faas_function: webpage-soeder-stream | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue