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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Page centrée</title>
|
||||
<title>Porzh.me</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;1,400&display=swap" rel="stylesheet">
|
||||
|
|
@ -43,9 +43,9 @@
|
|||
<h2 id="subtitle">Ma porzh stag</h2>
|
||||
<ul id="services">
|
||||
<li><a href="https://govel.porzh.me" target="_blank">govel</a></li> /
|
||||
<li><a href="https://levr.porzh.me" target="_blank">levr</a></li> /
|
||||
<li><a href="#" target="_blank"></li>
|
||||
<li><a href="https://levr.porzh.me" target="_blank">levr</a></li>
|
||||
</ul>
|
||||
<h3>Fièrement auto-hébergé</h3>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
../modules/common/base.nix
|
||||
../modules/common/networking.nix
|
||||
../modules/services/printing.nix
|
||||
../modules/services/nextcloud.nix
|
||||
../modules/sites/porzh.me.nix
|
||||
../modules/sites/levr.porzh.me.nix
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue