attempting archive box

This commit is contained in:
Anish Lakhwara 2022-12-14 01:05:56 +10:00
parent 1be9f5ff9e
commit 5b589f7df8
5 changed files with 24 additions and 2 deletions

View file

@ -83,6 +83,10 @@
"SunVox" "SunVox"
"renoise" "renoise"
]; ];
# config.permittedInsecurePackages = [
# "python3.10-django-3.1.14" # Needed for archivebox deployments on curve
# # Check when archive box updates it's dependeny
# ];
overlays = [ overlays = [
rust-overlay.overlays.default rust-overlay.overlays.default
tidalcycles.overlays.default tidalcycles.overlays.default

View file

@ -18,7 +18,7 @@
../profiles/calibre ../profiles/calibre
../profiles/wallabag ../profiles/wallabag
../profiles/finance ../profiles/finance
../profiles/archivebox # ../profiles/archivebox
]; ];
# For some reason this doesn't work in the profile, but does over here?? # For some reason this doesn't work in the profile, but does over here??

View file

@ -7,6 +7,22 @@ let
port = "8123"; port = "8123";
in in
{ {
nixpkgs.config.permittedInsecurePackages = [
"python3.10-django-3.1.14"
];
services.nginx.virtualHosts."archive.mossnet.lan" = {
enableACME = false;
forceSSL = false;
locations."/" = {
extraConfig = ''
proxy_pass http://localhost:${port}/;
proxy_set_header X-Forwarded-Host $host;
'';
};
};
systemd.services.archivebox-install = { systemd.services.archivebox-install = {
description = "archivebox install service"; description = "archivebox install service";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
@ -25,7 +41,7 @@ in
''; '';
script = '' script = ''
echo "Setting up wallabag files in ${dataDir} ..." echo "Setting up archivebox files in ${dataDir} ..."
cd "${dataDir}" cd "${dataDir}"
archivebox init archivebox init

View file

@ -25,6 +25,7 @@
"fin.mossnet.lan" "fin.mossnet.lan"
"paper.mossnet.lan" "paper.mossnet.lan"
"cal.mossnet.lan" "cal.mossnet.lan"
"archive.mossnet.lan"
]; ];
"192.168.1.226" = [ "192.168.1.226" = [
"df-web.lan" "df-web.lan"

View file

@ -11,6 +11,7 @@
192.168.1.240 fin.mossnet.lan 192.168.1.240 fin.mossnet.lan
192.168.1.240 paper.mossnet.lan 192.168.1.240 paper.mossnet.lan
192.168.1.240 books.mossnet.lan 192.168.1.240 books.mossnet.lan
192.168.1.240 archive.mossnet.lan
''; '';
# 10.0.69.4 mossnet.lan # 10.0.69.4 mossnet.lan
# 10.0.69.4 links.mossnet.lan # 10.0.69.4 links.mossnet.lan