Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a813a4de5 | |||
| 0b22e6ebef | |||
| c9550af4ad | |||
| 80585d2712 |
3 changed files with 11 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.2.19"
|
version = "0.2.20"
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@
|
||||||
|
|
||||||
trictrac = with final; rustPlatform.buildRustPackage {
|
trictrac = with final; rustPlatform.buildRustPackage {
|
||||||
pname = "trictrac";
|
pname = "trictrac";
|
||||||
version = "0.2.19"; # trictrac-version
|
version = "0.2.20"; # trictrac-version
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
|
||||||
|
|
@ -137,9 +137,18 @@ in
|
||||||
forceSSL = withSSL;
|
forceSSL = withSSL;
|
||||||
# Explicit listen so this vhost isn't shadowed by a default_server
|
# Explicit listen so this vhost isn't shadowed by a default_server
|
||||||
# created by other virtual hosts with forceSSL = true.
|
# created by other virtual hosts with forceSSL = true.
|
||||||
|
# When withSSL is true, also list plain-HTTP addresses (ssl =
|
||||||
|
# false): NixOS's forceSSL redirect vhost is generated by
|
||||||
|
# filtering this list down to the non-SSL entries, so without
|
||||||
|
# them the redirect server ends up with no `listen` at all and
|
||||||
|
# nginx silently falls back to its compiled-in default port
|
||||||
|
# (8000), clashing with any other service using that port.
|
||||||
listen = [
|
listen = [
|
||||||
{ addr = "0.0.0.0"; port = listenPort; ssl = withSSL; }
|
{ addr = "0.0.0.0"; port = listenPort; ssl = withSSL; }
|
||||||
{ addr = "[::]"; port = listenPort; ssl = withSSL; }
|
{ addr = "[::]"; port = listenPort; ssl = withSSL; }
|
||||||
|
] ++ optionals withSSL [
|
||||||
|
{ addr = "0.0.0.0"; port = 80; ssl = false; }
|
||||||
|
{ addr = "[::]"; port = 80; ssl = false; }
|
||||||
];
|
];
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
extraConfig = proxyConfig;
|
extraConfig = proxyConfig;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue