|
|
@ -91,6 +91,30 @@ |
|
|
|
# Enable the OpenSSH daemon. |
|
|
|
services.openssh.enable = true; |
|
|
|
|
|
|
|
# Enable RSS feedreader |
|
|
|
services.tt-rss = { |
|
|
|
enable = true; |
|
|
|
plugins = [ |
|
|
|
"auth_internal" |
|
|
|
"note" |
|
|
|
"bookmarklets" |
|
|
|
"toggle_sidebar" |
|
|
|
]; |
|
|
|
virtualHost = "news.home.nora.codes"; |
|
|
|
database = { |
|
|
|
type = "pgsql"; |
|
|
|
createLocally = true; |
|
|
|
}; |
|
|
|
selfUrlPath = "https://news.home.nora.codes/"; |
|
|
|
email = { |
|
|
|
server = "smtp.mailgun.org:465"; |
|
|
|
login = "tt-rss@mg.nora.codes"; |
|
|
|
password = "f8d5b0938b1950ea06d6a74cdee00c3e-31eedc68-1e28ee25"; |
|
|
|
security = "tls"; |
|
|
|
fromAddress = "tt-rss@mg.nora.codes"; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
# NGINX webserver and ACME certs |
|
|
|
services.nginx = { |
|
|
|
enable = true; |
|
|
@ -134,6 +158,13 @@ |
|
|
|
proxyWebsockets = true; |
|
|
|
}; |
|
|
|
}; |
|
|
|
virtualHosts."news.home.nora.codes" = { |
|
|
|
addSSL = true; |
|
|
|
useACMEHost = "home.nora.codes"; |
|
|
|
locations."/" = { |
|
|
|
proxyWebsockets = true; |
|
|
|
}; |
|
|
|
}; |
|
|
|
virtualHosts."felonyspork.local" = { |
|
|
|
locations."/" = { |
|
|
|
root = "/var/www/home.nora.codes"; |
|
|
@ -152,6 +183,7 @@ |
|
|
|
"dashboard.home.nora.codes" |
|
|
|
"jelly.home.nora.codes" |
|
|
|
"torrent.home.nora.codes" |
|
|
|
"news.home.nora.codes" |
|
|
|
]; |
|
|
|
}; |
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ]; |
|
|
|