mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
service.freshrss: migrate to new caddy config
Some checks are pending
/ Build Nix targets (push) Waiting to run
Some checks are pending
/ Build Nix targets (push) Waiting to run
This commit is contained in:
parent
04875a3bd4
commit
a57752f9dd
1 changed files with 2 additions and 21 deletions
|
@ -45,29 +45,10 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
baseUrl = "https://news.${domain}";
|
baseUrl = "https://news.${domain}";
|
||||||
inherit (cfg) language passwordFile defaultUser;
|
inherit (cfg) language passwordFile defaultUser;
|
||||||
virtualHost = null;
|
virtualHost = "news.${domain}";
|
||||||
# TODO 25.05: Add support for custom virtualHost
|
webserver = "caddy";
|
||||||
# webserver = "caddy";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.phpfpm.pools.freshrss.settings = {
|
|
||||||
"listen.owner" = lib.mkForce config.services.caddy.user;
|
|
||||||
"listen.group" = lib.mkForce config.services.caddy.group;
|
|
||||||
};
|
|
||||||
|
|
||||||
my.services.webserver.virtualHosts = [
|
|
||||||
{
|
|
||||||
subdomain = "news";
|
|
||||||
extraConfig = ''
|
|
||||||
root * ${config.services.freshrss.package}/p
|
|
||||||
php_fastcgi unix/${config.services.phpfpm.pools.freshrss.socket} {
|
|
||||||
env FRESHRSS_DATA_PATH ${config.services.freshrss.dataDir}
|
|
||||||
}
|
|
||||||
file_server
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
webapps.apps.freshrss = {
|
webapps.apps.freshrss = {
|
||||||
dashboard = {
|
dashboard = {
|
||||||
name = "News";
|
name = "News";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue