Set up Openbooks

This commit is contained in:
coolneng 2022-05-02 01:49:40 +02:00
parent 90d767d7ce
commit 69aba01d8c
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 21 additions and 0 deletions

View File

@ -31,4 +31,12 @@
# Set environment variable pointing to wallabag configuration directory # Set environment variable pointing to wallabag configuration directory
environment.variables.WALLABAG_DATA = "/var/lib/wallabag"; environment.variables.WALLABAG_DATA = "/var/lib/wallabag";
# Openbooks configuration
virtualisation.oci-containers.containers = {
openbooks = {
image = "evanbuss/openbooks";
ports = [ "127.0.0.1:9000:80" ];
};
};
} }

View File

@ -121,6 +121,18 @@
}; };
}; };
}; };
"books.coolneng.duckdns.org" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:9000/";
extraConfig = ''
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
'';
};
};
}; };
}; };
@ -136,6 +148,7 @@
"matrix.coolneng.duckdns.org" "matrix.coolneng.duckdns.org"
"element.coolneng.duckdns.org" "element.coolneng.duckdns.org"
"wallabag.coolneng.duckdns.org" "wallabag.coolneng.duckdns.org"
"books.coolneng.duckdns.org"
]; ];
}; };