forked from baron/baron-sso
Gitea 연동을 위한 Hydra Issuer 및 Oathkeeper 규칙 설정
This commit is contained in:
@@ -24,7 +24,12 @@ if [ ! -f "$RULES_FILE" ]; then
|
||||
echo "[oathkeeper] rules file not found: $RULES_FILE"
|
||||
exit 1
|
||||
fi
|
||||
cp "$RULES_FILE" "$RULES_ACTIVE"
|
||||
|
||||
# Remove existing active rules file to prevent overwrite issues (File exists/Permission denied)
|
||||
if [ -f "$RULES_ACTIVE" ]; then
|
||||
rm -f "$RULES_ACTIVE" || echo "[oathkeeper] Warning: Failed to remove existing rules.active.json"
|
||||
fi
|
||||
cp -f "$RULES_FILE" "$RULES_ACTIVE" || echo "[oathkeeper] Warning: Failed to copy rules file. Using existing if present."
|
||||
|
||||
LOG_DIR="/var/log/oathkeeper"
|
||||
LOG_FILE="${LOG_DIR}/access.log"
|
||||
|
||||
Reference in New Issue
Block a user