mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2024-11-25 01:33:34 +01:00
upgrade to postgresql 16
This commit is contained in:
parent
3bbd6366a7
commit
f703ee79fc
@ -17,12 +17,12 @@ let
|
||||
{
|
||||
name = "wiki-backup";
|
||||
runtimeInputs = [
|
||||
pkgs.postgresql
|
||||
config.services.postgresql.package
|
||||
pkgs.util-linux
|
||||
];
|
||||
text = ''
|
||||
mkdir -p /var/lib/mediawiki/backup/
|
||||
runuser -u postgres -- pg_dump --format=custom mediawiki > /var/lib/mediawiki/backup/db.tmp
|
||||
runuser -u postgres -- pg_dump --compress=zstd --format=custom mediawiki > /var/lib/mediawiki/backup/db.tmp
|
||||
mv /var/lib/mediawiki/backup/{db.tmp,db}
|
||||
'';
|
||||
};
|
||||
@ -46,7 +46,7 @@ let
|
||||
old-wiki-restore = pkgs.writeShellApplication {
|
||||
name = "old-wiki-restore";
|
||||
runtimeInputs = [
|
||||
pkgs.postgresql
|
||||
config.services.postgresql.package
|
||||
pkgs.coreutils
|
||||
pkgs.util-linux
|
||||
mediawiki-maintenance
|
||||
|
@ -127,6 +127,8 @@ in
|
||||
'';
|
||||
};
|
||||
|
||||
services.postgresql.package = pkgs.postgresql_16;
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 443 80 ];
|
||||
security.acme.acceptTerms = true;
|
||||
services.nginx.virtualHosts.${config.services.mediawiki.nginx.hostName} = {
|
||||
|
Loading…
Reference in New Issue
Block a user