dns setup

This commit is contained in:
Elizabeth Hunt 2024-03-29 17:05:03 -04:00
parent 566db7ed84
commit 5e87f20ab8
3 changed files with 13 additions and 2 deletions

View File

@ -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) }}"

View File

@ -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

View File

@ -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 }}