Compare commits
No commits in common. "58ab34e560ce6aa8814bb2fd44035a3e0fe58251" and "77c34b132a89b990b5051426dbecb02ede7c7a88" have entirely different histories.
58ab34e560
...
77c34b132a
11
README.org
11
README.org
|
@ -37,14 +37,21 @@ scp -R Projects/zion zion:/home/nixos/system
|
||||||
scp .ssh/zion root@zion:/etc/ssh/id_ed25519
|
scp .ssh/zion root@zion:/etc/ssh/id_ed25519
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
4. Rebuild the system using Flakes
|
4. Increase the size of tmpfs
|
||||||
|
|
||||||
|
#+begin_src shell
|
||||||
|
sudo mount -o remount,size=4G /run/user/0
|
||||||
|
sudo mount -o remount,size=2G /run/user/1000
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
5. Rebuild the system using Flakes
|
||||||
|
|
||||||
#+begin_src shell
|
#+begin_src shell
|
||||||
nix-shell -p git
|
nix-shell -p git
|
||||||
sudo nixos-rebuild switch --flake /home/nixos/system#zion --impure
|
sudo nixos-rebuild switch --flake /home/nixos/system#zion --impure
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
5. Restore the SQL databases
|
6. Restore the SQL databases
|
||||||
|
|
||||||
#+begin_src shell
|
#+begin_src shell
|
||||||
psql -U postgres -f /vault/backups/zion/databases/all.sql
|
psql -U postgres -f /vault/backups/zion/databases/all.sql
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
image =
|
image =
|
||||||
"evanbuss/openbooks@sha256:16609c3da954715f8f98b5de6c838146914ae700b2a700b4d9aad8b23c9217da";
|
"evanbuss/openbooks@sha256:16609c3da954715f8f98b5de6c838146914ae700b2a700b4d9aad8b23c9217da";
|
||||||
ports = [ "127.0.0.1:9000:80" ];
|
ports = [ "127.0.0.1:9000:80" ];
|
||||||
cmd = [ "--name" "bookworm" "--searchbot" "searchook" ];
|
cmd = [ "--name" "bookworm" "--useragent" "HexChat 2.9.1" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -145,6 +145,7 @@
|
||||||
proxyPass = "http://localhost:9000/";
|
proxyPass = "http://localhost:9000/";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue