config changed to config file
This commit is contained in:
@@ -22,8 +22,9 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
|
||||
---
|
||||
# 3. CONFIGMAP
|
||||
# 3. CONFIGMAP (UPDATED: Security settings moved here)
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
@@ -39,10 +40,13 @@ data:
|
||||
# Branding
|
||||
custom.name: Dooplex Paste
|
||||
|
||||
# Features
|
||||
# Security Features
|
||||
# We set these here to ensure they override defaults
|
||||
disable-signup: true
|
||||
disable-login-form: true
|
||||
require-login: false
|
||||
disable-gravatar: false
|
||||
|
||||
# NOTE: Security settings here are backed up by Env Vars in the Deployment below
|
||||
|
||||
---
|
||||
# 4. DEPLOYMENT
|
||||
apiVersion: apps/v1
|
||||
@@ -70,7 +74,6 @@ spec:
|
||||
containers:
|
||||
- name: opengist
|
||||
image: ghcr.io/thomiceli/opengist:1.11.1
|
||||
# CRITICAL FIX: Explicitly tell Opengist where the config file is
|
||||
args: ["--config", "/config/config.yaml"]
|
||||
env:
|
||||
# --- OIDC CONFIGURATION ---
|
||||
@@ -78,25 +81,14 @@ spec:
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: opengist-oidc
|
||||
key: client-id # Updated to match your new secret key
|
||||
key: client-id
|
||||
- name: OG_OIDC_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: opengist-oidc
|
||||
key: client-secret # Updated to match your new secret key
|
||||
key: client-secret
|
||||
- name: OG_OIDC_DISCOVERY_URL
|
||||
value: "https://authentik.dooplex.hu/application/o/opengist/.well-known/openid-configuration"
|
||||
|
||||
# --- SECURITY OVERRIDES (Enforced via Env Vars) ---
|
||||
- name: OG_DISABLE_SIGNUP
|
||||
value: "true"
|
||||
- name: OG_DISABLE_LOGIN_FORM
|
||||
value: "true"
|
||||
- name: OG_REQUIRE_LOGIN
|
||||
value: "false" # Ensures public links are viewable by anon users
|
||||
- name: OG_CUSTOM_NAME
|
||||
value: "Dooplex Paste"
|
||||
|
||||
ports:
|
||||
- containerPort: 6157
|
||||
name: http
|
||||
@@ -134,6 +126,7 @@ spec:
|
||||
- name: config
|
||||
configMap:
|
||||
name: opengist-config
|
||||
|
||||
---
|
||||
# 5. SERVICE
|
||||
apiVersion: v1
|
||||
|
||||
Reference in New Issue
Block a user