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