chore: disable persistent session logs, store files in the database

Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-09-24 15:02:52 +02:00
commit 79c539c219
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64
5 changed files with 9 additions and 21 deletions

View file

@ -49,7 +49,7 @@ redis:
maxRequestSize: 524288 # The maximum size of requests allowed in bytes maxRequestSize: 524288 # The maximum size of requests allowed in bytes
sessionLogs: sessionLogs:
persistentEnabled: true persistentEnabled: false
consoleEnabled: true consoleEnabled: true
consoleLogFormat: text # Defaults to "json", options are "text" or "json" consoleLogFormat: text # Defaults to "json", options are "text" or "json"

View file

@ -52,8 +52,8 @@ redis:
maxRequestSize: 524288 # The maximum size of requests allowed in bytes maxRequestSize: 524288 # The maximum size of requests allowed in bytes
sessionLogs: sessionLogs:
consoleEnabled: false consoleEnabled: true
# persistentEnabled: true persistentEnabled: false
# consoleLogFormat: json # Defaults to "json", options are "text" or "json" # consoleLogFormat: json # Defaults to "json", options are "text" or "json"
# futureCallExecutionEnabled: true # Defaults to true # futureCallExecutionEnabled: true # Defaults to true

View file

@ -56,8 +56,8 @@ redis:
maxRequestSize: 524288 # The maximum size of requests allowed in bytes maxRequestSize: 524288 # The maximum size of requests allowed in bytes
sessionLogs: sessionLogs:
# persistentEnabled: true consoleEnabled: true
# consoleEnabled: true persistentEnabled: false
# consoleLogFormat: json # Defaults to "json", options are "text" or "json" # consoleLogFormat: json # Defaults to "json", options are "text" or "json"
# futureCallExecutionEnabled: true # Defaults to true # futureCallExecutionEnabled: true # Defaults to true

View file

@ -46,7 +46,7 @@ redis:
#requireSsl: true # defaults to false #requireSsl: true # defaults to false
sessionLogs: sessionLogs:
persistentEnabled: true persistentEnabled: false
consoleEnabled: true consoleEnabled: true
# consoleLogFormat: json # Defaults to "json", options are "text" or "json" # consoleLogFormat: json # Defaults to "json", options are "text" or "json"

View file

@ -1,5 +1,4 @@
import 'package:serverpod_auth_idp_server/core.dart'; import 'package:serverpod_auth_idp_server/core.dart';
import 'package:serverpod_cloud_storage/serverpod_cloud_storage.dart';
import 'src/generated/serverpod.dart'; import 'src/generated/serverpod.dart';
@ -24,20 +23,9 @@ void run(List<String> args) async {
identityProviderBuilders: [], identityProviderBuilders: [],
); );
// Configure cloud storage. // Files live in Postgres until the self-hosted S3-compatible storage arrives later.
// This setup works with Serverpod Cloud without extra configuration. pod.addCloudStorage(DatabaseCloudStorage('private'));
// If you want to use a custom provider for cloud storage, replace these pod.addCloudStorage(DatabaseCloudStorage('public'));
// with your preferred provider.
pod.addCloudStorage(
await ServerpodCloudProvider.private(
fallback: () => DatabaseCloudStorage('private'),
),
);
pod.addCloudStorage(
await ServerpodCloudProvider.public(
fallback: () => DatabaseCloudStorage('public'),
),
);
// Start the server. // Start the server.
await pod.start(); await pod.start();