Migrate Wallabag to container deployment

This commit is contained in:
2025-04-28 17:06:22 +02:00
parent 90b38fcf08
commit 42df5964f1
8 changed files with 38 additions and 33 deletions

View File

@@ -137,22 +137,13 @@
"wallabag.psydnd.org" = {
useACMEHost = "psydnd.org";
forceSSL = true;
root = "${pkgs.wallabag}/web";
locations = {
"/".tryFiles = "$uri /app.php$is_args$args";
"/assets".root = "${config.environment.variables.WALLABAG_DATA}/web";
"~ ^/app.php(/|$)" = {
fastcgiParams = {
SCRIPT_FILENAME = "${pkgs.wallabag}/web/$fastcgi_script_name";
DOCUMENT_ROOT = "${pkgs.wallabag}/web";
};
extraConfig = ''
fastcgi_pass unix:${config.services.phpfpm.pools.wallabag.socket};
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include ${pkgs.nginx}/conf/fastcgi_params;
internal;
'';
};
locations."/" = {
proxyPass = "http://localhost:8090/";
extraConfig = ''
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $remote_addr;
'';
};
};
"books.psydnd.org" = {
@@ -236,7 +227,6 @@
"miniflux.service"
"radicale.service"
"dendrite.service"
"phpfpm-wallabag.service"
"grafana.service"
"podman-openbooks.service"
"podman-mqtt2prometheus.service"