splitted nginx logs
This commit is contained in:
parent
ea2a19bece
commit
20b92447f7
5 changed files with 24 additions and 2 deletions
|
|
@ -58,6 +58,10 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
access_log /var/log/nginx/${domain}_access.log;
|
||||||
|
error_log /var/log/nginx/${domain}_error.log;
|
||||||
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,10 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
access_log /var/log/nginx/${domain}_access.log;
|
||||||
|
error_log /var/log/nginx/${domain}_error.log;
|
||||||
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
|
let
|
||||||
|
domain = "music.mc-fucker.cool";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
#nixpkgs.config.packageOverrides = pkgs:
|
#nixpkgs.config.packageOverrides = pkgs:
|
||||||
|
|
@ -12,12 +15,16 @@
|
||||||
MusicFolder = "/mnt/genc/Musik";
|
MusicFolder = "/mnt/genc/Musik";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.nginx.virtualHosts."music.mc-fucker.cool" = {
|
services.nginx.virtualHosts."${domain}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:4533";
|
proxyPass = "http://localhost:4533";
|
||||||
};
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
access_log /var/log/nginx/${domain}_access.log;
|
||||||
|
error_log /var/log/nginx/${domain}_error.log;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
systemd.services.navidrome = {
|
systemd.services.navidrome = {
|
||||||
# fixes failing DNS lookup
|
# fixes failing DNS lookup
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,10 @@ in
|
||||||
proxyPass = "http://127.0.0.1:${nitter_port}";
|
proxyPass = "http://127.0.0.1:${nitter_port}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
access_log /var/log/nginx/${domain}_access.log;
|
||||||
|
error_log /var/log/nginx/${domain}_error.log;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.services.ombi;
|
cfg = config.services.ombi;
|
||||||
|
domain = "ombi.mc-fucker.cool";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs.config.packageOverrides = pkgs:
|
nixpkgs.config.packageOverrides = pkgs:
|
||||||
|
|
@ -10,7 +11,7 @@ in
|
||||||
|
|
||||||
services.ombi.enable = true;
|
services.ombi.enable = true;
|
||||||
|
|
||||||
services.nginx.virtualHosts."ombi.mc-fucker.cool" = {
|
services.nginx.virtualHosts."${domain}" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations = {
|
locations = {
|
||||||
|
|
@ -40,6 +41,8 @@ in
|
||||||
gzip_proxied any;
|
gzip_proxied any;
|
||||||
gzip_types text/plain text/css text/xml application/xml text/javascript application/x-javascript image/svg+xml;
|
gzip_types text/plain text/css text/xml application/xml text/javascript application/x-javascript image/svg+xml;
|
||||||
gzip_disable "MSIE [1-6]\.";
|
gzip_disable "MSIE [1-6]\.";
|
||||||
|
access_log /var/log/nginx/${domain}_access.log;
|
||||||
|
error_log /var/log/nginx/${domain}_error.log;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue