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
|
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"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue