Success! It may take a while for your comment to get moderated.
Please wait for 10 seconds until you get redirected back...
Or just go there manually.
{ config, pkgs, options, ... }: let release = "21.11"; in { imports = let mailserver-release = "master"; in [ ./hardware-configuration.nix ./network-configuration.nix ./searxng.nix (builtins.fetchTarball { url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/${mailserver-release}/nixos-mailserver-${mailserver-release}.tar.gz"; sha256 = "1i56llz037x416bw698v8j6arvv622qc0vsycd20lx3yx8n77n44"; }) ]; system.stateVersion = "${release}"; boot.cleanTmpDir = true; zramSwap.enable = true; services.openssh.enable = true; environment.systemPackages = with pkgs; [ git neovim tmux vim wget ]; networking.firewall = { enable = true; allowedTCPPorts = [ # ssh 22 # http/s 80 443 # Matrix 8008 8448 # Mumble 64738 # Used for mumble-web signaling (not sure if it needs TCP or UDP) 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 ]; allowedUDPPorts = [ # Mumble 64738 # Used for mumble-web signaling (not sure if it needs TCP or UDP) 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 ]; }; services.searxng.enable = true; services.searxng.package = pkgs.searxng; services.searxng.runInUwsgi = true; services.searxng.settingsFile = "/var/lib/searx/settings.yml"; services.nginx = { enable = true; commonHttpConfig = "log_format postdata '{\"ip\":\"$remote_addr\",\"time\":\"$time_iso8601\",\"referer\":\"$http_referer\",\"body\":\"$request_body\",\"ua\":\"$http_user_agent\"}';"; recommendedTlsSettings = true; recommendedOptimisation = true; recommendedGzipSettings = true; recommendedProxySettings = true; virtualHosts = let server = { "m.server" = "matrix.${config.networking.domain}:443"; }; client = { "m.homeserver" = { "base_url" = "https://matrix.${config.networking.domain}"; }; "m.identity_server" = { "base_url" = "https://vector.im"; }; }; serverConfig = '' add_header Content-Type application/json; return 200 '${builtins.toJSON server}'; ''; clientConfig = '' add_header Content-Type application/json; add_header Access-Control-Allow-Origin *; return 200 '${builtins.toJSON client}'; ''; in { "matrix.${config.networking.domain}" = { enableACME = true; forceSSL = true; locations."/repo".extraConfig = "return 301 https://${config.networking.domain}$request_uri;"; locations."/_matrix/maubot/" = { proxyPass = "http://127.0.0.1:29316"; proxyWebsockets = true; }; locations."= /.well-known/matrix/server".extraConfig = serverConfig; locations."= /.well-known/matrix/client".extraConfig = clientConfig; locations."/".proxyPass = "http://[::1]:8008"; }; "search.${config.networking.domain}" = { enableACME = true; forceSSL = true; locations."/".proxyPass = "http://127.0.0.1:8080"; }; "${config.networking.domain}" = { enableACME = true; forceSSL = true; extraConfig = "autoindex on;"; locations."/".root = "/var/www/${config.networking.domain}/"; locations."/fdroid/".alias = "/var/lib/fdroid/repo/"; locations."/src".root = "/var/www/${config.networking.domain}/"; locations."/src".extraConfig = "index force_dirlisting;"; locations."/submit_comment".extraConfig = '' access_log /var/log/nginx/comments.log postdata; proxy_pass https://${config.networking.domain}/submit.htm; break; ''; locations."/submit.htm" = { extraConfig = '' return 200 '
Success! It may take a while for your comment to get moderated.
Please wait for 10 seconds until you get redirected back...
Or just go there manually.