fix: add nginx dependency and documentation to Netdata module
- Add missing nginx dependency declaration - Add trailing newline at end of file - Document why contentSecurityPolicy is set to null
This commit is contained in:
parent
da7a45c1c0
commit
6cd9c91c38
1 changed files with 4 additions and 1 deletions
|
|
@ -36,6 +36,8 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
myModules.nginx.enable = true; # Ensure nginx is enabled
|
||||||
|
|
||||||
services.netdata = {
|
services.netdata = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
|
|
@ -49,7 +51,8 @@ in
|
||||||
myModules.nginx.domains.${cfg.domain} = {
|
myModules.nginx.domains.${cfg.domain} = {
|
||||||
port = cfg.port;
|
port = cfg.port;
|
||||||
internalOnly = true;
|
internalOnly = true;
|
||||||
contentSecurityPolicy = null;
|
contentSecurityPolicy = null; # Netdata dashboard has its own CSP requirements, cannot be overridden
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue