mirror of https://gitlab.com/curben/blog
post(caddy): NixOS/nixpkgs#97512 is still in progress
This commit is contained in:
parent
64a5d20284
commit
3fd090b561
|
@ -101,7 +101,7 @@ in {
|
||||||
environment = mkIf (versionAtLeast config.system.stateVersion "17.09")
|
environment = mkIf (versionAtLeast config.system.stateVersion "17.09")
|
||||||
{ CADDYPATH = cfg.dataDir; };
|
{ CADDYPATH = cfg.dataDir; };
|
||||||
startLimitIntervalSec = 86400;
|
startLimitIntervalSec = 86400;
|
||||||
# 20.09+
|
# https://github.com/NixOS/nixpkgs/pull/97512
|
||||||
# startLimitBurst = 5;
|
# startLimitBurst = 5;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
|
|
|
@ -80,7 +80,7 @@ in {
|
||||||
environment = mkIf (versionAtLeast config.system.stateVersion "17.09" && !isCaddy2)
|
environment = mkIf (versionAtLeast config.system.stateVersion "17.09" && !isCaddy2)
|
||||||
{ CADDYPATH = cfg.dataDir; };
|
{ CADDYPATH = cfg.dataDir; };
|
||||||
startLimitIntervalSec = 86400;
|
startLimitIntervalSec = 86400;
|
||||||
# 20.09+
|
# https://github.com/NixOS/nixpkgs/pull/97512
|
||||||
# startLimitBurst = 5;
|
# startLimitBurst = 5;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
|
|
|
@ -149,7 +149,7 @@ in {
|
||||||
environment = mkIf (versionAtLeast config.system.stateVersion "17.09")
|
environment = mkIf (versionAtLeast config.system.stateVersion "17.09")
|
||||||
{ CADDYPATH = cfg.dataDir; };
|
{ CADDYPATH = cfg.dataDir; };
|
||||||
startLimitIntervalSec = 86400;
|
startLimitIntervalSec = 86400;
|
||||||
# 20.09+
|
# https://github.com/NixOS/nixpkgs/pull/97512
|
||||||
# startLimitBurst = 5;
|
# startLimitBurst = 5;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
|
|
|
@ -124,7 +124,7 @@ in {
|
||||||
environment = mkIf (versionAtLeast config.system.stateVersion "17.09")
|
environment = mkIf (versionAtLeast config.system.stateVersion "17.09")
|
||||||
{ CADDYPATH = cfg.dataDir; };
|
{ CADDYPATH = cfg.dataDir; };
|
||||||
startLimitIntervalSec = 86400;
|
startLimitIntervalSec = 86400;
|
||||||
# 20.09+
|
# https://github.com/NixOS/nixpkgs/pull/97512
|
||||||
# startLimitBurst = 5;
|
# startLimitBurst = 5;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
|
|
Loading…
Reference in New Issue