71 lines
2.2 KiB
YAML
71 lines
2.2 KiB
YAML
---
|
|
semaphoreui_cookie_hash: "{{ undef() }}"
|
|
semaphoreui_cookie_encryption: "{{ undef() }}"
|
|
semaphoreui_access_key_encryption: "{{ undef() }}"
|
|
|
|
semaphoreui_svc:
|
|
domain: "{{ all_services | service_get_domain(service_name) }}"
|
|
port: 3000
|
|
|
|
semaphoreui_config:
|
|
dialect: postgres
|
|
postgres:
|
|
host: "{{ postgres.host }}"
|
|
user: "{{ opentofu.postgresql_data.semaphoreui.user }}"
|
|
pass: "{{ opentofu.postgresql_data.semaphoreui.pass }}"
|
|
name: "{{ opentofu.postgresql_data.semaphoreui.database }}"
|
|
options:
|
|
sslmode: require
|
|
|
|
schedule:
|
|
timezone: "{{ timezone }}"
|
|
web_host: "https://{{ semaphoreui_svc.domain }}"
|
|
|
|
email_alert: true
|
|
email_sender: "{{ opentofu.mailcow_data.semaphoreui.address }}"
|
|
email_host: "{{ mailer.host }}"
|
|
email_port: "{{ mailer.port | string }}"
|
|
email_username: "{{ opentofu.mailcow_data.semaphoreui.address }}"
|
|
email_password: "{{ opentofu.mailcow_data.semaphoreui.password }}"
|
|
email_secure: true
|
|
|
|
cookie_hash: "{{ semaphoreui_cookie_hash | mandatory }}"
|
|
cookie_encryption: "{{ semaphoreui_cookie_encryption | mandatory }}"
|
|
access_key_encryption: "{{ semaphoreui_access_key_encryption | mandatory }}"
|
|
|
|
password_login_disable: true
|
|
oidc_providers:
|
|
authentik:
|
|
display_name: "Sign in with Authentik"
|
|
provider_url: "{{ opentofu.authentik_data.semaphoreui.base_url }}/"
|
|
client_id: "{{ opentofu.authentik_data.semaphoreui.client_id }}"
|
|
client_secret: "{{ opentofu.authentik_data.semaphoreui.client_secret }}"
|
|
redirect_url: "https://{{ semaphoreui_svc.domain }}/api/auth/oidc/authentik/redirect/"
|
|
scopes:
|
|
- openid
|
|
- profile
|
|
- email
|
|
username_claim: "preferred_username"
|
|
name_claim: "preferred_username"
|
|
|
|
semaphoreui_env:
|
|
TZ: "{{ timezone }}"
|
|
|
|
semaphoreui_compose:
|
|
watchtower: update
|
|
image: semaphoreui/semaphore:latest-pip
|
|
volumes:
|
|
- ./config.json:/etc/semaphore/config.json
|
|
file:
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile_inline: |
|
|
FROM semaphoreui/semaphore:latest
|
|
|
|
USER root
|
|
RUN apk add --no-cache python3 py3-pip
|
|
RUN pip install infisicalsdk xmltodict
|
|
|
|
USER semaphore
|