2024-04-19 14:22:06 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
services.nginx = {
|
|
|
|
virtualHosts."managment.funn-nas.lauterer.it" = {
|
|
|
|
forceSSL = true;
|
|
|
|
useACMEHost = config.networking.domain;
|
|
|
|
locations."/" = {
|
|
|
|
proxyWebsockets = true;
|
2024-05-19 00:15:13 +02:00
|
|
|
proxyPass = "https://100.104.182.48:443";
|
2024-04-19 14:22:06 +02:00
|
|
|
};
|
|
|
|
basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualHosts."funn-nas.lauterer.it" = {
|
|
|
|
forceSSL = true;
|
|
|
|
useACMEHost = config.networking.domain;
|
|
|
|
locations."/" = {
|
|
|
|
proxyWebsockets = true;
|
|
|
|
proxyPass = "https://100.104.182.48:30044";
|
|
|
|
};
|
|
|
|
basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualHosts."home.lauterer.it" = {
|
|
|
|
forceSSL = true;
|
|
|
|
useACMEHost = config.networking.domain;
|
|
|
|
locations."/" = {
|
|
|
|
proxyWebsockets = true;
|
|
|
|
proxyPass = "http://10.0.0.32:8123";
|
|
|
|
};
|
|
|
|
# ignorerer sikkerhet for littegran for å oprettholde lettvinthet og app kompatibilitet.
|
|
|
|
#basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
|
|
|
|
};
|
|
|
|
|
2024-05-19 00:15:13 +02:00
|
|
|
virtualHosts."jellyfin.lauterer.it" = {
|
2024-04-28 14:42:49 +02:00
|
|
|
forceSSL = true;
|
|
|
|
useACMEHost = config.networking.domain;
|
|
|
|
locations."/" = {
|
|
|
|
proxyWebsockets = true;
|
|
|
|
proxyPass = "http://100.84.215.84:8096";
|
|
|
|
};
|
|
|
|
};
|
2024-05-01 16:17:45 +02:00
|
|
|
|
|
|
|
virtualHosts."podgrab.lauterer.it" = {
|
|
|
|
forceSSL = true;
|
|
|
|
useACMEHost = config.networking.domain;
|
|
|
|
locations."/" = {
|
|
|
|
proxyWebsockets = true;
|
|
|
|
proxyPass = "http://100.84.215.84:4242";
|
|
|
|
};
|
|
|
|
basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
|
2024-05-18 20:32:54 +02:00
|
|
|
};
|
2024-04-28 15:04:31 +02:00
|
|
|
|
2024-05-18 20:32:54 +02:00
|
|
|
virtualHosts."freshrss.lauterer.it" = {
|
|
|
|
forceSSL = true;
|
|
|
|
useACMEHost = config.networking.domain;
|
|
|
|
locations."/" = {
|
|
|
|
proxyWebsockets = true;
|
|
|
|
proxyPass = "http://100.84.215.84:80";
|
|
|
|
};
|
|
|
|
basicAuthFile = config.sops.secrets."nginx/defaultpass".path;
|
|
|
|
};
|
|
|
|
|
|
|
|
virtualHosts."minecraft.256.no" = {
|
|
|
|
locations."/" = {
|
|
|
|
proxyWebsockets = true;
|
|
|
|
proxyPass = "100.84.215.84:25565";
|
2024-05-19 00:15:13 +02:00
|
|
|
# extraConfig = ''
|
|
|
|
# proxy_set_header Host $host;
|
|
|
|
# proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
# proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
# '';
|
2024-05-18 20:32:54 +02:00
|
|
|
};
|
|
|
|
};
|
2024-04-28 15:04:31 +02:00
|
|
|
|
|
|
|
|
2024-04-28 14:42:49 +02:00
|
|
|
};
|
|
|
|
}
|