mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
21 lines
530 B
Nix
21 lines
530 B
Nix
{inputs, ...}: {
|
|
services.nginx = {
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = {
|
|
"chat.wanderingcrow.net" = {
|
|
forceSSL = true;
|
|
useACMEHost = "chat.wanderingcrow.net";
|
|
locations."/" = {
|
|
extraConfig = ''
|
|
allow 192.168.0.0/16;
|
|
allow ${inputs.nix-secrets.network.primary.publicIP};
|
|
deny all;
|
|
'';
|
|
proxyPass = "http://192.168.0.72:3000";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|