mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix(nginx): proxied listen
This commit is contained in:
parent
f2c7178486
commit
f9b02a03a4
18 changed files with 185 additions and 90 deletions
|
|
@ -59,8 +59,8 @@ in {
|
|||
inherit name extraConfig locations;
|
||||
vouch.enable = true;
|
||||
proxy = {
|
||||
url = mkIf grocy.enable (mkDefault
|
||||
"http://localhost:${toString nginx.defaultHTTPListenPort}"
|
||||
upstream = mkIf grocy.enable (mkDefault
|
||||
"nginx'proxied"
|
||||
);
|
||||
host = mkDefault serverName;
|
||||
};
|
||||
|
|
@ -70,7 +70,7 @@ in {
|
|||
local.enable = mkDefault true;
|
||||
ssl.cert.copyFromVhost = "grocy";
|
||||
proxy = {
|
||||
url = mkDefault "http://localhost:${toString nginx.defaultHTTPListenPort}";
|
||||
upstream = mkDefault "nginx'proxied";
|
||||
host = nginx.virtualHosts.grocy'local'int.serverName;
|
||||
};
|
||||
locations."/" = {
|
||||
|
|
@ -82,7 +82,7 @@ in {
|
|||
serverName = serverName'local;
|
||||
inherit name extraConfig locations;
|
||||
proxy = {
|
||||
url = mkDefault nginx.virtualHosts.grocy.proxy.url;
|
||||
upstream = mkDefault nginx.virtualHosts.grocy.proxy.upstream;
|
||||
host = mkDefault nginx.virtualHosts.grocy.proxy.host;
|
||||
};
|
||||
proxied.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue