chore: disable persistent session logs, store files in the database
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
86b742f510
commit
79c539c219
5 changed files with 9 additions and 21 deletions
|
|
@ -49,7 +49,7 @@ redis:
|
|||
maxRequestSize: 524288 # The maximum size of requests allowed in bytes
|
||||
|
||||
sessionLogs:
|
||||
persistentEnabled: true
|
||||
persistentEnabled: false
|
||||
consoleEnabled: true
|
||||
consoleLogFormat: text # Defaults to "json", options are "text" or "json"
|
||||
|
||||
|
|
|
|||
|
|
@ -52,8 +52,8 @@ redis:
|
|||
maxRequestSize: 524288 # The maximum size of requests allowed in bytes
|
||||
|
||||
sessionLogs:
|
||||
consoleEnabled: false
|
||||
# persistentEnabled: true
|
||||
consoleEnabled: true
|
||||
persistentEnabled: false
|
||||
# consoleLogFormat: json # Defaults to "json", options are "text" or "json"
|
||||
|
||||
# futureCallExecutionEnabled: true # Defaults to true
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ redis:
|
|||
maxRequestSize: 524288 # The maximum size of requests allowed in bytes
|
||||
|
||||
sessionLogs:
|
||||
# persistentEnabled: true
|
||||
# consoleEnabled: true
|
||||
consoleEnabled: true
|
||||
persistentEnabled: false
|
||||
# consoleLogFormat: json # Defaults to "json", options are "text" or "json"
|
||||
|
||||
# futureCallExecutionEnabled: true # Defaults to true
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ redis:
|
|||
#requireSsl: true # defaults to false
|
||||
|
||||
sessionLogs:
|
||||
persistentEnabled: true
|
||||
persistentEnabled: false
|
||||
consoleEnabled: true
|
||||
# consoleLogFormat: json # Defaults to "json", options are "text" or "json"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import 'package:serverpod_auth_idp_server/core.dart';
|
||||
import 'package:serverpod_cloud_storage/serverpod_cloud_storage.dart';
|
||||
|
||||
import 'src/generated/serverpod.dart';
|
||||
|
||||
|
|
@ -24,20 +23,9 @@ void run(List<String> args) async {
|
|||
identityProviderBuilders: [],
|
||||
);
|
||||
|
||||
// Configure cloud storage.
|
||||
// This setup works with Serverpod Cloud without extra configuration.
|
||||
// If you want to use a custom provider for cloud storage, replace these
|
||||
// with your preferred provider.
|
||||
pod.addCloudStorage(
|
||||
await ServerpodCloudProvider.private(
|
||||
fallback: () => DatabaseCloudStorage('private'),
|
||||
),
|
||||
);
|
||||
pod.addCloudStorage(
|
||||
await ServerpodCloudProvider.public(
|
||||
fallback: () => DatabaseCloudStorage('public'),
|
||||
),
|
||||
);
|
||||
// Files live in Postgres until the self-hosted S3-compatible storage arrives later.
|
||||
pod.addCloudStorage(DatabaseCloudStorage('private'));
|
||||
pod.addCloudStorage(DatabaseCloudStorage('public'));
|
||||
|
||||
// Start the server.
|
||||
await pod.start();
|
||||
|
|
|
|||
Loading…
Reference in a new issue