summaryrefslogtreecommitdiff
path: root/hosts/cloud/hetzner/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/cloud/hetzner/configuration.nix')
-rw-r--r--hosts/cloud/hetzner/configuration.nix42
1 files changed, 41 insertions, 1 deletions
diff --git a/hosts/cloud/hetzner/configuration.nix b/hosts/cloud/hetzner/configuration.nix
index a432391..bc23cf7 100644
--- a/hosts/cloud/hetzner/configuration.nix
+++ b/hosts/cloud/hetzner/configuration.nix
@@ -14,7 +14,7 @@
../users.nix
../packages.nix
../../server.nix
- ./mail.nix
+ # ./mail.nix
];
boot = {
loader.grub = {
@@ -50,5 +50,45 @@
# };
# };
+ services.nostr-rs-relay = {
+ enable = true;
+ settings = {
+ info = {
+ description = "Oorbit coming";
+ pubkey = "npub1ll29wev5zztj7mugxnqlzpa45m0t779zte4x90ugf3psxxqyzr6sk9nq94";
+ relay_url = "wss://n.urbit.cloud";
+ name = "UrNostr";
+ };
+
+ network = {
+ # Bind to this network address
+ address = "0.0.0.0";
+ # Listen on port 12849 (this is the default). I have not managed to find any way to change it. KEEP IT default!
+ };
+
+ authorization = {
+ pubkey_whitelist = [
+ "npub1ll29wev5zztj7mugxnqlzpa45m0t779zte4x90ugf3psxxqyzr6sk9nq94"
+ ];
+ };
+
+ options = {
+ max_event_size = 16384;
+ reject_future_seconds = 1800;
+ };
+
+ limits = {
+ max_subscriptions = 20;
+ max_filters = 100;
+ };
+ };
+ };
+
+ # Open firewall for the relay port
+ networking.firewall.allowedTCPPorts = [
+ 80
+ 443
+ ]; # Add 80/443 if using a reverse proxy
+
system.stateVersion = "24.11"; # Did you read the comment?
}