Add: nextcloud
This commit is contained in:
parent
5738ff9139
commit
4eb2698dac
3 changed files with 35 additions and 3 deletions
31
modules/services/nextcloud.nix
Normal file
31
modules/services/nextcloud.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ pkgs, ...}:
|
||||
{
|
||||
services.nginx.enable = false ;
|
||||
services.phpfpm.pools.nextcloud.settings."listen.owner" = "nextcloud";
|
||||
services.phpfpm.pools.nextcloud.settings."listen.group" = "caddy";
|
||||
services.phpfpm.pools.nextcloud.settings."listen.mode" = "0660";
|
||||
services.caddy.virtualHosts."koum.porzh.me".extraConfig = ''
|
||||
root * ${pkgs.nextcloud31}/
|
||||
php_fastcgi unix//run/phpfpm/nextcloud.sock
|
||||
file_server
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
X-Content-Type-Options" "nosniff"
|
||||
X-Frame-Options "SAMEORIGIN"
|
||||
X-XSS-Protection "1; mode=block"
|
||||
Referrer-Policy "same-origin"
|
||||
# Permission-Policy "camera=(), moicrophone=(), geolocation=()"
|
||||
}
|
||||
'';
|
||||
services.nextcloud = {
|
||||
enable = true ;
|
||||
package = pkgs.nextcloud31;
|
||||
hostName = "koum.porzh.me";
|
||||
database.createLocally = true ;
|
||||
config = {
|
||||
dbtype = "sqlite";
|
||||
adminpassFile="/home/lomig/.config/nextcloud.pass";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue