diff options
Diffstat (limited to 'nix/module.nix')
| -rw-r--r-- | nix/module.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nix/module.nix b/nix/module.nix index abf348e..2e34af5 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -60,7 +60,7 @@ in { nginx = mkOption { description = mdDoc '' - With this option, you can customize an nginx virtual host which already has sensible defaults for Dolibarr. + With this option, you can customize an nginx virtual host which already has sensible defaults for guzzle_api. Set to {} if you do not need any customization to the virtual host. If enabled, then by default, the {option}`serverName` is `''${domain}`, @@ -75,7 +75,7 @@ in { example = literalExpression '' { enableACME = true; - forceSSL = true; + forceSSL = true; } ''; }; @@ -88,9 +88,11 @@ in { enable = mkDefault true; wantedBy = ["multi-user.target"]; after = ["network.target"]; + script = '' URL="${proto}://${cfg.domain}" ${cfg.package}/bin/guzzle-api-server --host ${cfg.listen.host} --port ${toString cfg.listen.port} ''; + serviceConfig = mkDefault { Type = "simple"; Restart = "always"; |
