Raw refactoring of roles

This commit is contained in:
2025-05-09 17:47:33 +02:00
parent 82f442f40e
commit 5b47333955
177 changed files with 1483 additions and 1041 deletions

View File

@@ -0,0 +1,15 @@
credentials:
administrator_password:
description: "Initial password for the YOURLS administrator account"
algorithm: "sha256"
validation: "^[a-f0-9]{64}$"
database_password:
description: "Password for the YOURLS database user"
algorithm: "bcrypt"
validation: "^\\$2[aby]\\$.{56}$"
oauth2_proxy_cookie_secret:
description: "Secret used by OAuth2 Proxy to encrypt browser cookies (16 bytes hex-encoded)"
algorithm: "sha256"
validation: "^[a-f0-9]{32}$"

View File

@@ -4,4 +4,4 @@ YOURLS_DB_PASS: "{{database_password}}"
YOURLS_DB_NAME: "{{database_name}}"
YOURLS_SITE: "{{ web_protocol }}://{{domains[application_id]}}"
YOURLS_USER: "{{applications.yourls.users.administrator.username}}"
YOURLS_PASS: "{{yourls_administrator_password}}"
YOURLS_PASS: "{{applications[application_id].credentials.administrator_password}}"

View File

@@ -0,0 +1,14 @@
users:
administrator:
username: "{{users.administrator.username}}"
version: "latest"
oauth2_proxy:
application: "application"
port: "80"
location: "/admin/" # Protects the admin area
features:
matomo: true
css: true
landingpage_iframe: false
central_database: true
oauth2: true

View File

@@ -1,3 +1,3 @@
application_id: "yourls"
database_type: "mariadb"
database_password: "{{yourls_database_password}}"
database_password: "{{applications[application_id].credentials.database_password}}"