add: trackmania replay server with oidc

This commit is contained in:
2023-06-10 22:13:06 +00:00
parent 4f87a69fb9
commit 51eafb5fa4
4 changed files with 59 additions and 0 deletions

View File

@@ -108,3 +108,15 @@ keycloak_clients:
groups: "pki" groups: "pki"
master_address: "https://vpn.atlantishq.de" master_address: "https://vpn.atlantishq.de"
skips: skips:
tmnf-replay-server:
party_secret : "HISTORY_PURGED_SECRET"
client_id: z_trackmania
client_secret: "HISTORY_PURGED_SECRET"
redirect_uris:
- "https://trackmania.atlantishq.de/*"
description: "AtlantisHQ Trackmania Replays"
keycloak_id: "00000000-0000-0000-0000-000000000006"
groups: "trackmania"
master_address: "https://trackmania.atlantishq.de"
skips:

View File

@@ -32,6 +32,13 @@
notify: notify:
- reload async icinga settings - reload async icinga settings
- name: Create data directories
file:
name: "/data/{{ item }}/"
state: directory
with_items:
- tmnf-replay-server
- name: Create compose directories - name: Create compose directories
file: file:
name: "/opt/{{ item }}" name: "/opt/{{ item }}"
@@ -42,6 +49,7 @@
- potaris - potaris
- sector32 - sector32
- async-icinga - async-icinga
- tmnf-replay-server
- name: Copy compose templates - name: Copy compose templates
template: template:
@@ -53,6 +61,7 @@
- potaris - potaris
- sector32 - sector32
- async-icinga - async-icinga
- tmnf-replay-server
- name: Log into private registry - name: Log into private registry
docker_login: docker_login:
@@ -72,3 +81,29 @@
- potaris - potaris
- sector32 - sector32
- async-icinga - async-icinga
- tmnf-replay-server
- name: OAuth2Proxy directories
file:
path: "/opt/oauth2proxy/{{ item }}/"
state: directory
recurse: yes
with_items:
- tmnf-replay-server
- name: include services ports
include_vars: services.yaml
- name: Deploy OAuth2Proxy compose files
template:
src: oauth-standalone-docker-compose.yaml
dest: "/opt/oauth2proxy/{{ item }}/docker-compose.yaml"
with_items:
- tmnf-replay-server
- name: Deploy OAuth2Proxy
community.docker.docker_compose:
project_src: /opt/oauth2proxy/{{ item }}/
pull: true
with_items:
- tmnf-replay-server

View File

@@ -0,0 +1,10 @@
tmnf-replay-server:
image: registry.atlantishq.de/tmnf-replay-server:latest
restart: always
ports:
- 6010:5000
volumes:
- /data/tmnf-replay-server/data/:/app/data/
- /data/tmnf-replay-server/upload/:/app/upload/
environment:
- SQLITE_LOCATION=sqlite:////app/data/sqlite.db

View File

@@ -9,3 +9,5 @@ services:
port: 5003 port: 5003
cert-manager: cert-manager:
port: 5000 port: 5000
tmnf-replay-server:
port: 5010