Set up shiori as an alternative to Wallabag

This commit is contained in:
coolneng 2020-12-08 01:36:40 +01:00
parent 4af46920cc
commit 00ac8e6bb2
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 15 additions and 1 deletions

View File

@ -86,6 +86,11 @@
forceSSL = true; forceSSL = true;
locations."/" = { proxyPass = "http://localhost:8080/"; }; locations."/" = { proxyPass = "http://localhost:8080/"; };
}; };
"shiori.coolneng.duckdns.org" = {
enableACME = true;
forceSSL = true;
locations."/" = { proxyPass = "http://localhost:8181/"; };
};
}; };
}; };
@ -100,6 +105,7 @@
"sync.coolneng.duckdns.org" "sync.coolneng.duckdns.org"
"git.coolneng.duckdns.org" "git.coolneng.duckdns.org"
"rss.coolneng.duckdns.org" "rss.coolneng.duckdns.org"
"shiori.coolneng.duckdns.org"
]; ];
}; };
}; };
@ -114,7 +120,7 @@
# PostgreSQL databases configuration # PostgreSQL databases configuration
services.postgresql = { services.postgresql = {
enable = true; enable = true;
package = pkgs.postgresql_11; package = pkgs.postgresql;
ensureDatabases = [ "gitea" "wallabag" ]; ensureDatabases = [ "gitea" "wallabag" ];
ensureUsers = [ ensureUsers = [
{ {
@ -156,11 +162,19 @@
}; };
}; };
# Enable shiori service
services.shiori = {
enable = true;
address = "localhost";
port = 8181;
};
# Restart reverse proxy after services startup # Restart reverse proxy after services startup
systemd.services.nginx.after = [ systemd.services.nginx.after = [
"gitea.service" "gitea.service"
"syncthing.service" "syncthing.service"
"miniflux.service" "miniflux.service"
"radicale.service" "radicale.service"
"shiori.service"
]; ];
} }