mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-26 14:45:29 -08:00
only jellyfin enabled
This commit is contained in:
parent
332d5fb31f
commit
808f983f9b
2 changed files with 32 additions and 17 deletions
|
@ -6,7 +6,7 @@
|
|||
imports = [
|
||||
(import ./hardware-configuration.nix)
|
||||
(import ./containers/nextcloud.nix)
|
||||
(import ./modules/nginx.nix)
|
||||
(import ./modules/nginx.nix)
|
||||
];
|
||||
|
||||
environment.systemPackages = [
|
||||
|
@ -29,6 +29,11 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
sshd.enable = true;
|
||||
openssh.settings = {
|
||||
|
|
|
@ -3,30 +3,40 @@
|
|||
{
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
commonHttpConfig = ''
|
||||
real_ip_header CF-Connecting-IP;
|
||||
add_header 'Referrer-Policy' 'origin-when-cross-origin';
|
||||
add_header X-Frame-Options DENY;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
'';
|
||||
|
||||
recommendedGzipSettings = true;
|
||||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
|
||||
virtualHosts = {
|
||||
"nickiel.net" = {
|
||||
forceSSL = true;
|
||||
sslCertificate = "/Aurora/nickiel.net.pem";
|
||||
sslCertificateKey = "/Aurora/nickiel.net.key";
|
||||
locations."/" = {
|
||||
root = "/var/lib/acme/nickiel.net";
|
||||
};
|
||||
|
||||
"jellyfin.nickiel.net" = {
|
||||
forceSSL = true;
|
||||
sslCertificate = "/Aurora/nickiel.net.pem";
|
||||
sslCertificateKey = "/Aurora/nickiel.net.key";
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8096/";
|
||||
proxyWebsockets = true;
|
||||
#extraConfig = "proxy_pass_header Authorization";
|
||||
};
|
||||
};
|
||||
|
||||
"files.nickiel.net" = {
|
||||
forceSSL = true;
|
||||
sslCertificate = "/Aurora/nickiel.net.pem";
|
||||
sslCertificateKey = "/Aurora/nickiel.net.key";
|
||||
locations."/" = {
|
||||
proxyPass = "http://192.168.100.11:80";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
#"files.nickiel.net" = {
|
||||
# forceSSL = true;
|
||||
# sslCertificate = "/Aurora/nickiel.net.pem";
|
||||
# sslCertificateKey = "/Aurora/nickiel.net.key";
|
||||
# locations."/" = {
|
||||
# proxyPass = "http://192.168.100.11:80";
|
||||
# proxyWebsockets = true;
|
||||
# };
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue