mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Move grav
This commit is contained in:
parent
aaa78b5079
commit
7074efe217
2 changed files with 22 additions and 2 deletions
|
|
@ -59,6 +59,17 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
addr = mkOption {
|
||||
type = types.str;
|
||||
description = "IP address.";
|
||||
default = "0.0.0.0";
|
||||
};
|
||||
port = mkOption {
|
||||
type = types.nullOr types.port;
|
||||
description = "Port number.";
|
||||
default = 3000;
|
||||
};
|
||||
|
||||
phpPackage = mkPackageOption pkgs "php" { };
|
||||
|
||||
maxUploadSize = mkOption {
|
||||
|
|
@ -153,10 +164,16 @@ in {
|
|||
|
||||
services.nginx = mkIf (cfg.virtualHost != null) {
|
||||
enable = true;
|
||||
|
||||
virtualHosts = {
|
||||
${cfg.virtualHost} = {
|
||||
root = "${servedRoot}";
|
||||
|
||||
listen = [{
|
||||
addr = cfg.addr;
|
||||
port = cfg.port;
|
||||
}];
|
||||
|
||||
locations = {
|
||||
"= /robots.txt" = {
|
||||
priority = 100;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue