From 329af6f8c675bc1067ab6b37e3d8131191353a46 Mon Sep 17 00:00:00 2001 From: Julian Sutter Date: Sat, 21 Dec 2024 20:51:50 -0800 Subject: [PATCH] dev --- desktop/dev.nix | 2 +- servers/hugo.nix | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 servers/hugo.nix diff --git a/desktop/dev.nix b/desktop/dev.nix index 1b98d37..68100d2 100755 --- a/desktop/dev.nix +++ b/desktop/dev.nix @@ -3,7 +3,7 @@ { environment.systemPackages = with pkgs; [ - (python3.withPackages(ps: with ps; [ pandas requests pip ])) + (python3.withPackages(ps: with ps; [ pandas requests ])) nodejs rpi-imager ]; diff --git a/servers/hugo.nix b/servers/hugo.nix new file mode 100644 index 0000000..26aca08 --- /dev/null +++ b/servers/hugo.nix @@ -0,0 +1,43 @@ +services: + app: + image: klakegg/hugo:debian + hostname: www.symbiotrip.com + environment: + - PUID=1001 + - PGID=1001 + - TZ=America/Los_Angeles + command: server + volumes: + - /mnt/userdata/hugo:/src + ports: + - 1313:1313 + restart: unless-stopped + labels: + com.centurylinklabs.watchtower.enable: "true" + + remark42: + image: umputun/remark42:latest + hostname: "remark42.symbiotrip.com" + ports: + - "1314:8080" + environment: + - REMARK_URL=https://remark42.symbiotrip.com + - SECRET=remark42-symbiotrip + - DEBUG=true + - AUTH_GOOGLE_CID + - AUTH_GOOGLE_CSEC + - AUTH_GITHUB_CID + - AUTH_GITHUB_CSEC + - AUTH_FACEBOOK_CID + - AUTH_FACEBOOK_CSEC + - AUTH_DISQUS_CID + - AUTH_DISQUS_CSEC + # Enable it only for the initial comment import or for manual backups. + # Do not leave the server running with the ADMIN_PASSWD set if you don't have an intention + # to keep creating backups manually! + # - ADMIN_PASSWD= + volumes: + - /mnt/userdata/www/remark42/var:/srv/var + restart: unless-stopped + labels: + com.centurylinklabs.watchtower.enable: "true"