add onion service for idimitrov.dev

This commit is contained in:
Ivan Dimitrov 2023-12-01 21:26:44 +02:00
parent 14a03c1c82
commit b4004bbe31
2 changed files with 17 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
imports = [ ./configuration.nix ./mailserver ./roundcube ./postgres ./wireguard ./nginx ./webshite ]; imports = [ ./configuration.nix ./mailserver ./roundcube ./postgres ./wireguard ./nginx ./webshite ./tor ];
} }

View File

@ -0,0 +1,16 @@
{
services.tor = {
enable = true;
relay.onionServices = {
idimitrov = {
map = [{
port = 80;
target = {
addr = "127.0.0.1";
port = 3000;
};
}];
};
};
};
}