diff --git a/flake.nix b/flake.nix index f1c9ddd..8c8775a 100644 --- a/flake.nix +++ b/flake.nix @@ -159,7 +159,7 @@ forceSSL = true; useACMEHost = cfg.url; - locations."/".proxyPass = "http://[::1]:${toString cfg.port}"; + locations."/".proxyPass = "http://[::]:${toString cfg.port}"; }; virtualHosts."www.${cfg.url}" = { @@ -175,8 +175,8 @@ forceSSL = true; useACMEHost = cfg.url; - locations."/".proxyPass = "http://[::1]:${toString cfg.port}/404"; - locations."/assets".proxyPass = "http://[::1]:${toString cfg.port}/assets"; + locations."/".proxyPass = "http://[::]:${toString cfg.port}/404"; + locations."/assets".proxyPass = "http://[::]:${toString cfg.port}/assets"; }; }; diff --git a/src/main.rs b/src/main.rs index 637d266..f22a81c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,7 @@ async fn main() -> anyhow::Result<()> { .format_timestamp(None) .init(); - let address = SocketAddr::new("::1".parse().unwrap(), args.port); + let address = SocketAddr::new("::".parse().unwrap(), args.port); let router = Router::new() .merge(routes::router())