mirror of
https://github.com/RGBCube/Site
synced 2025-07-31 13:07:46 +00:00
Bind to :: instead of ::1
This commit is contained in:
parent
8eca91853c
commit
fbd5a229c8
2 changed files with 4 additions and 4 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue