summaryrefslogtreecommitdiff
path: root/lib/VNDB
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2022-05-09 15:08:44 +0200
committerYorhel <git@yorhel.nl>2022-05-09 15:08:45 +0200
commitafd47ae5a1c2c7cf888acec4c64d41cf49a0a4e8 (patch)
tree39d72a9ae70f28dce841740c5541140784274556 /lib/VNDB
parent70b178f7a07eb8940e6c936485ae6cf60c16e35e (diff)
Implement site-wide read-only mode
Somewhat surprising I haven't implemented this earlier, I'm sure it might have been useful during server migrations. Anyway, with my current plans for a postgres 14 upgrade I could significantly reduce full downtime by temporarily putting the site in read-only mode instead.
Diffstat (limited to 'lib/VNDB')
-rw-r--r--lib/VNDB/Config.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VNDB/Config.pm b/lib/VNDB/Config.pm
index d360c258..b5f489ee 100644
--- a/lib/VNDB/Config.pm
+++ b/lib/VNDB/Config.pm
@@ -29,6 +29,8 @@ my $config = {
convert_path => '/usr/bin/convert',
identify_path => '/usr/bin/identify',
trace_log => 0,
+ # Put the site in full read-only mode; Login is disabled and nothing is written to the DB. Handy for migrations.
+ read_only => 0,
scr_size => [ 136, 102 ], # w*h of screenshot thumbnails
ch_size => [ 256, 300 ], # max. w*h of char images