dns setup
This commit is contained in:
		
							parent
							
								
									566db7ed84
								
							
						
					
					
						commit
						5e87f20ab8
					
				|  | @ -7,3 +7,4 @@ hatecomputers_club_oauth2_token_url: > | ||||||
| hatecomputers_club_oauth2_user_info_uri: > | hatecomputers_club_oauth2_user_info_uri: > | ||||||
|  https://auth.hatecomputers.club/oauth2/openid/{{ hatecomputers_club_oauth2_client_id }}/userinfo |  https://auth.hatecomputers.club/oauth2/openid/{{ hatecomputers_club_oauth2_client_id }}/userinfo | ||||||
| hatecomputers_club_oauth2_redirect_uri: "https://hatecomputers.club/auth" | hatecomputers_club_oauth2_redirect_uri: "https://hatecomputers.club/auth" | ||||||
|  | hatecomputers_intra_bind_address: "{{ lookup('community.general.dig', inventory_hostname) }}" | ||||||
|  |  | ||||||
|  | @ -16,6 +16,15 @@ | ||||||
|     group: root |     group: root | ||||||
|     mode: 0700 |     mode: 0700 | ||||||
| 
 | 
 | ||||||
|  | - name: Allow dns from rfc1918 networks | ||||||
|  |   loop: "{{ rfc1918_networks }}" | ||||||
|  |   community.general.ufw: | ||||||
|  |     port: 53 | ||||||
|  |     rule: allow | ||||||
|  |     from: "{{ item }}" | ||||||
|  |     state: "enabled" | ||||||
|  |     proto: "udp" | ||||||
|  | 
 | ||||||
| - name: Enable hatecomputers-club | - name: Enable hatecomputers-club | ||||||
|   ansible.builtin.systemd_service: |   ansible.builtin.systemd_service: | ||||||
|     state: restarted |     state: restarted | ||||||
|  |  | ||||||
|  | @ -2,11 +2,12 @@ | ||||||
| version: '3' | version: '3' | ||||||
| 
 | 
 | ||||||
| services: | services: | ||||||
|   kanidm: |   server: | ||||||
|     image: git.hatecomputers.club/hatecomputers/hatecomputers.club:latest |     image: git.hatecomputers.club/hatecomputers/hatecomputers.club:latest | ||||||
|     restart: always |     restart: always | ||||||
|     ports: |     ports: | ||||||
|       - 127.0.0.1:9696:8080 |       - 127.0.0.1:9696:8080 | ||||||
|  |       - {{ hatecomputers_intra_bind_address }}:53:8053/udp | ||||||
|     environment: |     environment: | ||||||
|       - CLOUDFLARE_TOKEN={{ cloudflare_api_token }} |       - CLOUDFLARE_TOKEN={{ cloudflare_api_token }} | ||||||
|       - CLOUDFLARE_ZONE={{ cloudflare_zone_id }} |       - CLOUDFLARE_ZONE={{ cloudflare_zone_id }} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue