Wallabag setup complete

This commit is contained in:
Trevor Vallender 2023-10-10 11:39:54 +01:00
parent 01b2421098
commit 8e30512a3a
3 changed files with 16 additions and 11 deletions

View File

@ -2,6 +2,13 @@
{ config, pkgs, inputs, ... }: { config, pkgs, inputs, ... }:
{ {
virtualisation.docker = {
enable = true;
storageDriver = "btrfs";
logDriver = "json-file";
};
imports = imports =
[ [
../shared/shared-configuration.nix ../shared/shared-configuration.nix
@ -37,12 +44,6 @@
vim vim
]; ];
virtualisation.docker = {
enable = true;
storageDriver = "btrfs";
logDriver = "json-file";
};
users.users.kamal = { users.users.kamal = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ extraGroups = [

View File

@ -66,7 +66,7 @@
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:5232"; proxyPass = "http://127.0.0.1:8485";
}; };
}; };
}; };

View File

@ -1,15 +1,19 @@
{ config, pkgs, inputs, ... }: { config, pkgs, inputs, ... }:
{ {
virtualisation.oci-containers.backend = "docker";
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
wallabag = { wallabag = {
image = "wallabag/wallabag:2.6.7"; autoStart = true;
image = "wallabag/wallabag";
environment = { environment = {
SYMFONY__ENV__DOMAIN_NAME = "http://localhost"; SYMFONY__ENV__DOMAIN_NAME = "https://wb.tsvallender.co.uk";
}; };
volumes = [ volumes = [
"/opt/wallabag/data:/var/www/wallabag/data" "wallabag_data:/var/www/wallabag/data"
"/opt/wallabag/images:/var/www/wallabag/images" ];
ports = [
"8485:80"
]; ];
}; };
}; };