about summary refs log tree commit diff
path: root/nix/hosts/corrino/www/events.emile.space.nix
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-08-02 23:52:32 +0200
committerEmile <git@emile.space>2024-08-02 23:52:32 +0200
commit0e0b47b3cf1de2ea4c780ed488490a642a254f1e (patch)
treea9f0a391a7ed6bbb948a30acb14c189b2500f780 /nix/hosts/corrino/www/events.emile.space.nix
parent4b220f4c5802bca0c887a4e1e70e8dad091548e9 (diff)
corrino ports
Diffstat (limited to 'nix/hosts/corrino/www/events.emile.space.nix')
-rw-r--r--nix/hosts/corrino/www/events.emile.space.nix61
1 files changed, 0 insertions, 61 deletions
diff --git a/nix/hosts/corrino/www/events.emile.space.nix b/nix/hosts/corrino/www/events.emile.space.nix
deleted file mode 100644
index d7f5d50..0000000
--- a/nix/hosts/corrino/www/events.emile.space.nix
+++ /dev/null
@@ -1,61 +0,0 @@
-{ ... }:
-
-let
-  ports = import ../ports.nix;
-in {
-  services.nginx.virtualHosts."events.emile.space" = {
-    forceSSL = true;
-    enableACME = true;
-
-    locations = {
-      "/" = {
-        extraConfig = ''
-          proxyPass = "http://[::1]:${toString ports.events}";
-        '';
-      };
-    };
-  };
-
-  # Create users:
-  #
-  # go into the mobilizon-launchers directory within the nix store (systemctl
-  # status mobilizon..., you'll find it there somehow)
-  #
-  # ; sudo -u mobilizon ./bin/mobilizon_ctl users.new emile@emile.space --moderator --admin
-
-  services = {
-    mobilizon = {
-      enable = true;
-      settings.":mobilizon" = {
-        "Mobilizon.Web.Endpoint" = {
-          url.host = "events.emile.space";
-          http.port = ports.events;
-
-          # The IP address to listen on. Defaults to [::1] notated as a byte
-          # tuple.
-          # (Yes, this is an elexir application and they've mapped the type system
-          # into nix)
-          http.ip = {
-            _elixirType = "tuple";
-            value = [ 0 0 0 0 0 0 0 1 ];
-          };
-
-          has_reverse_proxy = true;
-        };
-
-        "Mobilizon.Storage.Repo" = {
-          username = "mobilizon";
-          socket_dir = "/var/run/postgresql";
-          database = "mobilizon_prod";
-        };
-
-        ":instance" = rec {
-          name = "events.emile.space";
-          hostname = "emile.space";
-          email_reply_to = email_from;
-          email_from = "noreply@$emile.space";
-        };
-      };
-    };
-  };
-}